Message246317
Note that this affects other Random methods, too. There are several places in the source where something of the form `int(i * random.random())` is used to select an integer in the half-open range [0, i).
And a nitpick: it's a stretch to describe double-rounding on multiplication (or any other arithmetic operation) as a bug: Python-the-language makes no promises about adhering to IEEE 754 arithmetic rule. (In fact, it makes no promises about using IEEE 745 formats in the first place.) |
|
Date |
User |
Action |
Args |
2015-07-05 14:28:29 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, rhettinger, vstinner, steven.daprano, r.david.murray, skrah, serhiy.storchaka, Serge Anuchin |
2015-07-05 14:28:29 | mark.dickinson | set | messageid: <1436106509.39.0.274516332665.issue24567@psf.upfronthosting.co.za> |
2015-07-05 14:28:29 | mark.dickinson | link | issue24567 messages |
2015-07-05 14:28:29 | mark.dickinson | create | |
|