Skip to content

Instantly share code, notes, and snippets.

@colorbox
Last active December 9, 2017 17:08
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 colorbox/6c67371db44bae35438b8a41ceefb216 to your computer and use it in GitHub Desktop.
Save colorbox/6c67371db44bae35438b8a41ceefb216 to your computer and use it in GitHub Desktop.
バーチャルのじゃロリ狐娘Youtuberおじさん
def words
[
'Youtuber',
'バーチャル',
'のじゃロリ',
'おじさん',
'狐娘',
'ケモミミ',
'おばさん',
'底辺',
'VR',
]
end
def random(word)
new_word = words[rand(words.count)]
if word != new_word
new_word
else
random(word)
end
end
arr = [random(nil)]
(rand(words.count)).times{|index| arr << random(arr[index]) }
puts arr.join()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment