From: Alex Young Date: 2007-05-23T06:00:21+09:00 Subject: Re: Uniform Random Number Generator Dan Zwell wrote: > Roland Mai wrote: >> I need a random number generator that generates random numbers with a >> uniform distribution. >> >> I am not sure what rand does in ruby and I can't seem to find it online >> either. My initial assumption is that it follows a uniform >> distribution, but >> I can't tell. >> >> Any ideas? >> > > Well, I would think that by definition it has a uniform distribution. > Can you give an example of a RNG that does not have a uniform distribution? > An RNG defined such that its output is the average of the outputs of N independent uniform RNG's will, if my very, very shaky memory of first year undergrad maths can be relied upon, have a Gaussian distribution. That's the simplest I can think of... -- Alex