I am porting the application from python 2 to python 3 and encountered the following problem: random.randint returns different result according to used Python versi
random.randint
Finally found the answer!
Sparky05 give interesting idea and was near with int(1+99*random.random()).
int(1+99*random.random())
But the right answer is
random.seed(seed, version=1) int(random.random() * 100) + 1
in Python 3.x
Works in the same way like
random.seed(seed) random.randint(1, 100)
in Python 2.x