Skip to content

Instantly share code, notes, and snippets.

@todashuta
Last active November 8, 2015 06:34
Show Gist options
  • Select an option

  • Save todashuta/d6729d0654288ea6d15f to your computer and use it in GitHub Desktop.

Select an option

Save todashuta/d6729d0654288ea6d15f to your computer and use it in GitHub Desktop.
STAP細胞ジェネレーター
#!/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