On Sun, Mar 3, 2013 at 5:46 PM, Roger Guay <i...@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
> ideas?
>


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.
(702) 508-8462
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to