[issue9025] Non-uniformity in randrange for large arguments.

Mark Dickinson report at bugs.python.org
Fri Jun 18 12:24:56 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

Note: the number 6755399441055744 is special:  it's 0.75 * 2**53, and was deliberately chosen so that the non-uniformity is easily exhibited by looking at residues modulo 3.  For other numbers of this size, the non-uniformity is just as bad, but demonstrating the non-uniformity clearly would have taken a little more work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9025>
_______________________________________


More information about the Python-bugs-list mailing list