c3d / db48x

RPL runtime for the DM42 calculator, in the spirit of HP48/49/50
http://48calc.org
GNU Lesser General Public License v3.0
114 stars 14 forks source link

`Random` bias for integer case #1345

Closed c3d closed 1 week ago

c3d commented 1 week ago

This was observed by doing sums of RanM output. RanM values are integers between -9 and 9. The sums show that there is a bias on the sum, introduced by the addition of 0.5 before rounding to integer.