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
18 changes: 18 additions & 0 deletions random-menu.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
adjectives = [" delicious", " rich", " firm", " hot", " sweet", " peppery", " salty", " creamy", " sour", " tangy"]
cooking_style = [" deep fried"," pan fried", " sauteed", " skewered", " barbecued"," boiled", " stirred", " seered", " charbroiled"," roasted"]
foods = [" bread", " portabella", " lamb", " tomatoes", " carrots", " corn", " sweet potatoes", " onions", " chicken", " duck"]
puts

adjectives = adjectives.uniq
cooking_style = cooking_style.uniq
foods = foods.uniq

num = 1
10.times do
# puts adjectives.sample(1 + rand(adjectives.count))
# BELOW is the one that works
puts "menu item # #{ num}" + adjectives.sample + cooking_style.sample + foods.sample

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to work on your indentation a bit.

# puts "menu item # #{ num}" + adjectives.shuffle.each + cooking_style.shuffle.each

num += 1
end