From 270e0584fdb3d624fd0fe50bd690d2bbf685e6ed Mon Sep 17 00:00:00 2001 From: mcmar7 Date: Thu, 9 Feb 2017 09:40:08 -0800 Subject: [PATCH] Create random_menu.rb --- random_menu.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 random_menu.rb diff --git a/random_menu.rb b/random_menu.rb new file mode 100644 index 0000000..686f7fa --- /dev/null +++ b/random_menu.rb @@ -0,0 +1,17 @@ +# rest_gen.rb + +# 3 arrays of ten items each: adjectives, cooking styles, foods + +adj = ["crunchy", "crisp", "hot", "spicy", "bland", "cold", "fresh", "raw", "sweet", "savory"] +cook = ["broiled", "baked", "fried", "steamed", "mashed", "chopped", + "sauteed", "seared", "bbq", "marinated"] +foods = ["cake", "pasta", "zuchinni", "beef", "chicken", "pork", + "vegetables", "salmon", "shrimp", "lobster", "clams", "dumplings", "lamb"] + +# pull one item from each array you made in the baseline requirements to create a "menu item". +# show a list of 10 menu items +# each item should pull one word from each array +10.times do |i| + i += 1 + puts "#{i}. #{adj.sample} #{cook.sample} #{foods.sample}" +end