Message161510
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. |
|
Date |
User |
Action |
Args |
2012-05-24 14:30:50 | ArneBab | set | recipients:
+ ArneBab, mark.dickinson, vstinner, r.david.murray, skrah, AaronR |
2012-05-24 14:30:50 | ArneBab | set | messageid: <1337869850.92.0.802579592414.issue13060@psf.upfronthosting.co.za> |
2012-05-24 14:30:47 | ArneBab | link | issue13060 messages |
2012-05-24 14:30:47 | ArneBab | create | |
|