I know that you can do this:
random.seed(100)
r = random.randint(1, 3)
But is it possible to do something more similar to this?
r = random.randint(1, 3, seed=100)
Also I am aware that the code above would give the same output every time, that is the behavior I want.
Aucun commentaire:
Enregistrer un commentaire