I need to generate a controlled sequence of pseudo-random numbers, given an initial parameter. For that I\'m using the standard python random generator, seeded by this param
I just found out that there is also a difference between python3.7 and python3.8.
The following code behaves the same
from random import Random seed = 317 rand = Random(seed) rand.getrandbits(64)
but if you use from _random import Random instead, it behaves differently.
from _random import Random