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 ArneBab
Recipients AaronR, ArneBab, mark.dickinson, r.david.murray, skrah, vstinner
Date 2012-05-24.14:30:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337869850.92.0.802579592414.issue13060@psf.upfronthosting.co.za>
In-reply-to
Content
I also think that rounding half away from zero would be the most obvious choice, as it does not introduce a bias for random numbers distributed around 0 while being close to what I would expect from school mathematics.

The case of n*(random() - 0.5) which I assume as common, this should work well, which is not the case for rounding towards +infinity.
History
Date User Action Args
2012-05-24 14:30:50ArneBabsetrecipients: + ArneBab, mark.dickinson, vstinner, r.david.murray, skrah, AaronR
2012-05-24 14:30:50ArneBabsetmessageid: <1337869850.92.0.802579592414.issue13060@psf.upfronthosting.co.za>
2012-05-24 14:30:47ArneBablinkissue13060 messages
2012-05-24 14:30:47ArneBabcreate