Message287089
random.seed version=1 wont generate the same randint sequences in python2 and python3
Python 2.7:
>>> seed(1); randint(0,100)
13
Python 3.6:
>>> seed(1,version=1); randint(0,100)
17
The documentation states that versio=1 is "provided for reproducing random sequences from older versions of Python" and "If a new seeding method is added, then a backward compatible seeder will be offered." |
|
Date |
User |
Action |
Args |
2017-02-06 07:27:36 | Maciej Obarski | set | recipients:
+ Maciej Obarski |
2017-02-06 07:27:36 | Maciej Obarski | set | messageid: <1486366056.6.0.968381064219.issue29458@psf.upfronthosting.co.za> |
2017-02-06 07:27:36 | Maciej Obarski | link | issue29458 messages |
2017-02-06 07:27:36 | Maciej Obarski | create | |
|