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 vstinner
Recipients Serge Anuchin, mark.dickinson, r.david.murray, rhettinger, serhiy.storchaka, skrah, steven.daprano, tim.peters, vstinner
Date 2015-07-05.10:36:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwaPtYtONpskmvJv=bMph2qOoCC-i-y3YNEYSQgcM0fnOg@mail.gmail.com>
In-reply-to <1436088251.38.0.613934842084.issue24567@psf.upfronthosting.co.za>
Content
There is a simple fix. If the result is invalid, drop it and generate a new
number. It should keep the distribution uniform.

Another fix is to only use integers. Why do we use float in choice by the
way?
History
Date User Action Args
2015-07-05 10:36:51vstinnersetrecipients: + vstinner, tim.peters, rhettinger, mark.dickinson, steven.daprano, r.david.murray, skrah, serhiy.storchaka, Serge Anuchin
2015-07-05 10:36:51vstinnerlinkissue24567 messages
2015-07-05 10:36:51vstinnercreate