Wolfgang Rohdewald added the comment:
There seems to be more to it, _randbelow already returns different values.
And _randbelow is used by other user helpers like randrange, choice, select,
shuffle, sample
--
___
Python tracker
Antti Haapala added the comment:
but yes, now that I read the documentation, 3.5 docs it say very explicitly
that:
Two aspects are guaranteed not to change:
- If a new seeding method is added, then a backward compatible seeder will
be offered.
- The generator’s random() method will
Antti Haapala added the comment:
Sorry + and - are backwards there (I did the delta in wrong direction); + is
before, and - after Raymond's commit. The `if` was retained there for
backward-compatibility.
--
___
Python tracker
Antti Haapala added the comment:
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
SilentGhost added the comment:
The rnd.random is still producing the same sequence, between versions. randint
evidently doesn't, but that must be happening elsewhere.
--
components: +Extension Modules
nosy: +SilentGhost, mark.dickinson, rhettinger
type: -> behavior
versions: +Python
New submission from Wolfgang Rohdewald:
The documentation promises backwards compatible seeders. I understand this as
such that they generate the same random sequences. But for Python 2.7.12 and
3.5.2 this is not so, even if I pass an integer as seed value. The attached
script returns