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
10 changes: 10 additions & 0 deletions random_menu.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
adjective_array = ["delicious", "hot", "soft", "cold", "home-made", "crunchy", "savory", "spicy", "rich", "sweet"]
cooking_array = ["toasted", "steamed", "fried", "grilled", "sauteed", "seared", "seasoned", "boiled", "baked", "marinated"]
food_array = ["mushrooms", "fish", "burger", "salad", "clams", "eggplant", "cheese", "oysters", "dumplings", "rice"]

puts "Welcome to the random menu generator. The following are you choices:"

#outputs one random element from each array (but uses only one element once) and ties it together. This is done 10 times
10.times do
puts "#{adjective_array.sample} #{cooking_array.sample} #{food_array.sample}"
end