Created
July 4, 2020 11:04
-
-
Save orjanv/9ca4858cc57649e1ec4646bf510e12a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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