Instantly share code, notes, and snippets.

anonymous /gist:d24c1f72547f2be45c19 Secret
Created Jul 4, 2014

Embed
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