Message108111
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. |
|
Date |
User |
Action |
Args |
2010-06-18 15:01:04 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, belopolsky, vstinner |
2010-06-18 15:01:04 | mark.dickinson | set | messageid: <1276873264.59.0.908232149298.issue9025@psf.upfronthosting.co.za> |
2010-06-18 15:01:03 | mark.dickinson | link | issue9025 messages |
2010-06-18 15:01:02 | mark.dickinson | create | |
|