Last active
November 8, 2015 06:34
-
-
Save todashuta/d6729d0654288ea6d15f to your computer and use it in GitHub Desktop.
STAP細胞ジェネレーター
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| (1..Float::INFINITY).each do |cnt| | |
| s = "#{ [*'A'..'Z'].sample(4).join }細胞" | |
| if s == 'STAP細胞' | |
| puts "#{cnt}回目で#{s}ができました☆" | |
| break | |
| else | |
| puts "#{cnt}回目: #{s}" | |
| next | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment