Author pitrou
Recipients Serge Anuchin, mark.dickinson, pitrou, r.david.murray, rhettinger, serhiy.storchaka, skrah, steven.daprano, tim.peters, vstinner
Date 2015-07-09.23:09:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I suppose the simplest "fix" would be to replace relevant instances of
> int(random() * N)
> with
> min(int(random() * N), N-1)

That sounds simple and generic. It skews the distribution a tiny little bit, but it doesn't sound significant (perhaps Mark would disagree).
Date User Action Args
2015-07-09 23:09:18pitrousetrecipients: + pitrou, tim.peters, rhettinger, mark.dickinson, vstinner, steven.daprano, r.david.murray, skrah, serhiy.storchaka, Serge Anuchin
2015-07-09 23:09:18pitrousetmessageid: <>
2015-07-09 23:09:18pitroulinkissue24567 messages
2015-07-09 23:09:18pitroucreate