Message108441
| Author | mark.dickinson |
|---|---|
| Recipients | belopolsky, mark.dickinson, rhettinger, terry.reedy, vstinner |
| Date | 2010-06-23.08:41:51 |
| SpamBayes Score | 0.040393338 |
| Marked as misclassified | No |
| Message-id | <1277282515.08.0.848728028886.issue9025@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Either of these looks good to me. If the last line of the second is changed from "return int(r) % n" to "return int(r) // (N // n)" then it'll use the high-order bits of random() instead of the low-order bits. This doesn't matter for MT, but might matter for subclasses of Random using a different underlying generator. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2010-06-23 08:41:55 | mark.dickinson | set | recipients: + mark.dickinson, rhettinger, terry.reedy, belopolsky, vstinner |
| 2010-06-23 08:41:55 | mark.dickinson | set | messageid: <1277282515.08.0.848728028886.issue9025@psf.upfronthosting.co.za> |
| 2010-06-23 08:41:51 | mark.dickinson | link | issue9025 messages |
| 2010-06-23 08:41:51 | mark.dickinson | create | |