Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import random
random_number_file = open('rnd100k.txt', 'w')
digits = 100000 # number of digits
for count in range (digits):
number = random.randint(0,9) # random number between 0 and 9
random_number_file.write(str(number))
random_number_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment