Random(3) often returns 1
Rob Cozens
rcozens at pon.net
Thu Jun 8 10:34:48 EDT 2006
Hi Tom,
> I have two games that sort a container (three lines, one line is the
> answer) by random the number of lines. The "answer" should be in any
> one of the three resulting lines, but is overwhelmingly in the first
>
> any thoughts?
>
The smaller the root of a random number, the greater (a) the odds that
the random numbers generated will be duplicates and (b) the number of
iterations needed to produce output distributed evenly along a
bell-curve.
Rob Cozens
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list