demo_ref_random_seed.py:
import random random.seed(10) print(random.random()) #the generator creates a random number based on the seed value, so if the seed value is 10, you will always get 0.5714025946899135 as the first random number.
C:\Users\My Name>python demo_random_seed.py
0.5714025946899135