Weighted Random Number
dochawk at gmail.com
Mon Mar 4 12:36:21 EST 2013
On Sun, Mar 3, 2013 at 5:46 PM, Roger Guay <irog at mac.com> wrote:
> I suspect this is easy, but I'm not coming up with anything. Can anyone
> tell me how to get weighted random numbers in LC? Say I want to position
> something on the screen randomly but favor the center of the screen. Any
The standard way is to use the Cumulative Distribution Function (CDF) of
the random numver that you really want.
However, adding two random numbers from 0 to half your max would also
average the middle of the screen with a pyramid-like distrivution
Dr. Richard E. Hawkins, Esq.
More information about the Use-livecode