Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- infile = open('txtfile.txt', 'w')
- for i in range(int(input('How many random numbers?')))
- line = str(random.randint(1,500))
- infile.write(line)
- print(line)
- infile.close()
Advertisement
Add Comment
Please, Sign In to add comment