Created
May 9, 2011 17:47
-
-
Save itochan/962963 to your computer and use it in GitHub Desktop.
リア充ご結婚祝福用
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 | |
# 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