[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds
Mark Dickinson
report at bugs.python.org
Thu Mar 5 15:29:34 EST 2020
Mark Dickinson <dickinsm at gmail.com> added the comment:
These results are hardly surprising, given the algorithms used. But why would you consider this a problem?
If you want your randrange(n) and randrange(m) results to be independent, don't generate them from the exact same random source, starting with the same seed. Use different seeds, or generate one set of results followed by the other without resetting the seed in between.
----------
nosy: +mark.dickinson, rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39867>
_______________________________________
More information about the Python-bugs-list
mailing list