r/learningpython • • 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

4 comments sorted by