def generate_dataset(number_items=1000):
 data = []
 names = get_names()
 totalnames = len(names)
 random.seed()
 for i in range(number_items):
  data.append({'name': names[random.randint(0, (totalnames - 1))], 'age': random.randint(1, 100), 'description': li_words(50, False)})
 return data

def generate_dataset ( number_items = 1000 ) : data = [ ] names = get_names ( ) totalnames = len ( names ) random . seed ( ) for i in range ( number_items ) : data . append ( { 'name' : names [ random . randint ( 0 , ( totalnames - 1 ) ) ] , 'age' : random . randint ( 1 , 100 ) , 'description' : li_words ( 50 , False ) } ) return data
generate a dataset with number_items elements .