When I use random api to get a random number at hardware rebooting, the value is a fixed number.
Even if I use the time.ticks_ms() to set the different random seed, the value is still a fixed number.
Code: Select all
import random
impot time
seed = time.ticks_ms() % 7
random.seed(seed)
print("{}".random.randint(1,100))