You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DB50X v.0.8.7 Hardware DM42n
RANDOMARRAY does not generate uniformly distributed values.
According to help file, RANDOMARRAY returns an array with containing random integer values between -9 and 9.
I would therefore expect all integers within this interval to be uniformly generated.
However, end points (-9, 9) are only generated with half the probability, and 0 is generated with twice the probability.
In my opinion this is rather unexpected, and behavior should be changed, or at least carefully explained in the help file.
Strangely enough, the HP50G seems to generate 0 with twice the uniform probability, I've never noticed this before.
The text was updated successfully, but these errors were encountered:
I had actually tried to improve the distribution in some earlier release. It is surprisingly difficult to do right for integers, and the range -9 .. 9 is particularly annoying when coming from a decimal random number. As you pointed out, even HP does not get it right.
DB50X v.0.8.7 Hardware DM42n
RANDOMARRAY does not generate uniformly distributed values.
According to help file, RANDOMARRAY returns an array with containing random integer values between -9 and 9.
I would therefore expect all integers within this interval to be uniformly generated.
However, end points (-9, 9) are only generated with half the probability, and 0 is generated with twice the probability.
In my opinion this is rather unexpected, and behavior should be changed, or at least carefully explained in the help file.
Strangely enough, the HP50G seems to generate 0 with twice the uniform probability, I've never noticed this before.
The text was updated successfully, but these errors were encountered: