I would like to create a simple Omikuji using Ruby. It is a simple program that outputs the elements of the array at random.
#First, list the types of Omikuji in the array omikuji = ["Daikichi","Nakayoshi","Kichi","Bad","大Bad"] #Assign the value of the omikuji array randomly pulled out by the sample method to the result variable result = omikuji.sample #The elements of the array randomly selected from the contents of the omikuji variable are output each time it is executed. puts result
that's all. If you forget to buy an Omikuji, please use it.