Created
February 12, 2016 16:52
-
-
Save danared/64a2cb1ed039b4f2cc4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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