Skip to content

Instantly share code, notes, and snippets.

@orjanv
Created July 4, 2020 11:04
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 orjanv/9ca4858cc57649e1ec4646bf510e12a5 to your computer and use it in GitHub Desktop.
Save orjanv/9ca4858cc57649e1ec4646bf510e12a5 to your computer and use it in GitHub Desktop.
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