Random(3) often returns 1
rcozens at pon.net
Thu Jun 8 09:34:48 CDT 2006
> 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
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