Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2010 04:53:30 +0100
From:      J65nko <j65nko@gmail.com>
To:        Rolf Nielsen <listreader@lazlarlyricon.com>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Generating normally distributed random numbers.
Message-ID:  <19861fba1001301953t7c46ee96v68a281458c88b29a@mail.gmail.com>
In-Reply-To: <4B64F938.5000605@lazlarlyricon.com>
References:  <4B64F938.5000605@lazlarlyricon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 31, 2010 at 4:30 AM, Rolf Nielsen
<listreader@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19861fba1001301953t7c46ee96v68a281458c88b29a>