[issue35094] Improved algorithms for random.sample

Raymond Hettinger report at bugs.python.org
Sun Oct 28 17:07:43 EDT 2018


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

One other thought.  We don't guarantee that sample() will always produce the same sequences, so that does give us some freedom; however, we have a strong aversion to doing so unless there is a compelling advantage.  It will almost certainly cause some disruption for users if their samples stop being reproducible from a given seed.  There is some value to the implementation remaining stable.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35094>
_______________________________________


More information about the Python-bugs-list mailing list