import json
import random

with open('../resources/ingredientsTagged.json') as ingredientData:
    ingredients = json.load(ingredientData)

def amountOfIngredients(numberOfIngredients):
    ingredientList = []
    for i in range(numberOfIngredients):
        ingredient = random.choice(ingredients)
        ingredientList.append(ingredient["name"])

    return ingredientList


print amountOfIngredients(6)
a94e741d02784451d6192fd3f21cf5ba3a1e7adf
import json
import random

with open('../resources/ingredientsTagged.json') as ingredientData:
    ingredients = json.load(ingredientData)

def amountOfIngredients(numberOfIngredients):
    ingredientList = []
    for i in range(numberOfIngredients):
        ingredient = random.choice(ingredients)
        ingredientList.append(ingredient["name"])

    return ingredientList


print amountOfIngredients(6)