On Sun, Jan 31, 2010 at 4:30 AM, Rolf Nielsen
<listrea...@lazlarlyricon.com> wrote:

> I am working on a project where I have the need to generate normally
> distributed random positive integers, preferably unsigned 64 bit (or even
> longer if possible) integers. More specifically, I will need the ability to
> supply the expected value and the standard deviation for the desired
> distribution, so a standard normal distribution will not do.
>
> Is there anyone out there who knows how to accomplish this? I have no idea
> whatsoever, and for all I know there may already be a function that does
> this in the math library. I'm quite accomplished when it comes to math, but
> strangely I've never programmed computers for it.
>

http://en.wikipedia.org/wiki/Random_number_generator#Generation_from_a_probability_distribution
refers to two methods.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to