Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2014 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d24c1f72547f2be45c19 to your computer and use it in GitHub Desktop.
Save anonymous/d24c1f72547f2be45c19 to your computer and use it in GitHub Desktop.
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