Weighted Random Number
irog at mac.com
Mon Mar 4 14:37:54 CST 2013
Thanks for this, Dr. Hawkins. I suspect my distribution is Gaussian, but I may not need to be precise. I'm evaluating all the great suggestions I've received on this.
On Mar 4, 2013, at 10:36 AM, Dr. Hawkins <dochawk at gmail.com> wrote:
> 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.
> (702) 508-8462
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode