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 Serge Anuchin, mark.dickinson, r.david.murray, rhettinger, serhiy.storchaka, skrah, steven.daprano, tim.peters, vstinner
Date 2015-07-05.14:28:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436106509.39.0.274516332665.issue24567@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2015-07-05 14:28:29mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, vstinner, steven.daprano, r.david.murray, skrah, serhiy.storchaka, Serge Anuchin
2015-07-05 14:28:29mark.dickinsonsetmessageid: <1436106509.39.0.274516332665.issue24567@psf.upfronthosting.co.za>
2015-07-05 14:28:29mark.dickinsonlinkissue24567 messages
2015-07-05 14:28:29mark.dickinsoncreate