➜

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.

作者 vstinner
收信人 belopolsky, mark.dickinson, orsenthil, pitrou, rhettinger, terry.reedy, vstinner
日期 2010-06-24.01:41:30
SpamBayes Score 0.031397834
Marked as misclassified 否
Message-id <1277343694.45.0.410156973012.issue9025@psf.upfronthosting.co.za>
In-reply-to
内容
randint.py: another algorithm to generate a random integer in a range. It uses only operations on unsigned integers (no evil floatting point number). It calls tick() multiple times to generate enough entropy. It has an uniform distribution (if the input generator has an uniform distribution).

tick() is simply the output of the Mersenne Twister generator. The algorithm can be optimized (especially the part computing ndigits and scale).
历史
日期 用户 动作 参数
2010-06-24 01:41:34vstinner修改recipients: + vstinner, rhettinger, terry.reedy, mark.dickinson, belopolsky, orsenthil, pitrou
2010-06-24 01:41:34vstinner修改messageid: <1277343694.45.0.410156973012.issue9025@psf.upfronthosting.co.za>
2010-06-24 01:41:32vstinner链接issue9025 messages
2010-06-24 01:41:31vstinner创建