This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients belopolsky, mark.dickinson, rhettinger, vstinner
Date 2010-06-18.15:01:01
SpamBayes Score 0.11636946
Marked as misclassified No
Message-id <1276873264.59.0.908232149298.issue9025@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a more careful Python-only patch that fixes the bias in randrange and randint (but not in shuffle, choice or sample).  It should work well both for Mersenne Twister and for subclasses of Random that use a poorer PRNG with badly-behaved low-order bits.
History
Date User Action Args
2010-06-18 15:01:04mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, belopolsky, vstinner
2010-06-18 15:01:04mark.dickinsonsetmessageid: <1276873264.59.0.908232149298.issue9025@psf.upfronthosting.co.za>
2010-06-18 15:01:03mark.dickinsonlinkissue9025 messages
2010-06-18 15:01:02mark.dickinsoncreate