Skip to content

Instantly share code, notes, and snippets.

@danared danared/randomdocs
Created Feb 12, 2016

What would you like to do?
def load_data(collection, n=100):
#fixed number of marks
max_i = 10
for j,d in load_data_file(n):
d['i'] = random.randint(0, max_i)
collection.insert( d )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.