Skip to content

Instantly share code, notes, and snippets.

@itochan
Created May 9, 2011 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itochan/962963 to your computer and use it in GitHub Desktop.
Save itochan/962963 to your computer and use it in GitHub Desktop.
リア充ご結婚祝福用
#!/usr/bin/env ruby
# coding: utf-8
riaju = ["リア充", "おめでとうございます", "死", "地震", "ご冥福", "を", "お祈りします", "原発", "炉心溶融", "プルサーマル", "爆発事象", "ただちに", "人体", "影響はない", "ご結婚", "リア充", "復興支援", "本当に", "おせち", "!", "祝", "そして"]
pluthermal = 100
omedetougozaimasu = riaju.sort_by{rand}
shi = omedetougozaimasu[rand(omedetougozaimasu.length)]
touhokuchihoutaiheiyouokijishin = ""
genpatsu = "ご結婚おめでとうございます"
while genpatsu.length <= pluthermal
shi = omedetougozaimasu[rand(omedetougozaimasu.length)]
if rand(10) > 9 then
soshite = rand(shi.length)
osechi = rand(shi.length)
tounankaijishin = shi[soshite, osechi]
else
tounankaijishin = shi
end
genpatsu << tounankaijishin
end
gomeifukuooinorishimasu = genpatsu[0, pluthermal]
touhokuchihoutaiheiyouokijishin = gomeifukuooinorishimasu
puts touhokuchihoutaiheiyouokijishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment