r/learningpython • u/Wide-Currency • Apr 17 '20
Random number generator closes on run.
Every time I try to run the number generator, it closes. I have tried using input() and os.system("pause") but it is still not working.
import random
print(random.random())
input()
2
Upvotes
View all comments
Show parent comment
1
u/mr__scripter May 13 '20
copy-paste the file into your home directory or specify correct path to file.