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

Mark Dickinson report at bugs.python.org
Wed Jun 23 22:43:55 CEST 2010


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

Just to illustrate, here's a patch that adds a method Random._smallrandbelow, based on the algorithm I described above.

----------
Added file: http://bugs.python.org/file17755/_smallrandbelow.diff

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


More information about the Python-bugs-list mailing list