Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions random-menu-generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
origins = ["Washington", "Japanese", "Chinese", "French", "Lebanese", "Cajun", "Mexican", "Thai", "Ethiopian", "Canadian"]
adjectives = ["red-hot", "pickled", "overcooked", "cheesy", "salty", "savory", "spoiled", "fermented", "sour", "charred"]
foods = ["mashed potatoes", "ketchup fried rice", "ice cream", "prawns", "liver and onions", "tripe", "sushi", "pancakes", "birthday cake", "imitation crab"]

puts "How many items would you like to see from our menu?"
listed_items = gets.chomp.to_i

until listed_items <= 10
puts "We only have 10 items available."
puts "How many items would you like to see from our menu?"
listed_items = gets.chomp.to_i
end

listed_items.times do | num |
puts "#{num + 1}. #{origins.shuffle!.pop} #{adjectives.shuffle!.pop} #{foods.shuffle!.pop}"
end