Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2014 17:23
What would you like to do?
import random
comicYears = open("comicsSold.txt", "a")
years = range(1945, 2015)
for year in years:
sold = random.randrange(5000, 150000000)
sold = str(sold)
comicYears.write(str(year) + ',' + sold + '\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment