Message272511
It is this change in 3.2:
randrange is more sophisticated about producing equally distributed
values. Formerly it used a style like ``int(random()*n)`` which '
could produce slightly uneven distributions.
- return self._randbelow(istart)
+ if istart >= maxwidth:
+ return self._randbelow(istart)
+ return int(self.random() * istart)
by rhettinger. Since there has not been any regression tests that the seeded numbers would stay compatible, they don't. Perhaps it would be a good idea to *add* such tests. |
|
Date |
User |
Action |
Args |
2016-08-12 09:46:34 | ztane | set | recipients:
+ ztane, rhettinger, mark.dickinson, SilentGhost, wrohdewald |
2016-08-12 09:46:34 | ztane | set | messageid: <1470995194.43.0.527744908777.issue27742@psf.upfronthosting.co.za> |
2016-08-12 09:46:34 | ztane | link | issue27742 messages |
2016-08-12 09:46:34 | ztane | create | |
|