Re: Random number generator (normal random source)

From: James Turner (turnerjh@XTN.NET)
Date: 07/10/98


"d. hall" <dhall@OOI.NET> writes:

> // thus on Fri, 10 Jul 1998 13:15:55 -0400, James wrote:
>
> > In my code I needed numbers generated on a normal distribution (ie the
> > bell curve thing) and use floats for that purpose.  Anyway, here's the
> > code.
>
> Normal (aka Gaussian) random number generation reminds me...  herein is a
> function is heavily bastardized from Numerical Recipes in C.

This is the same code I used.  I took the algorithm from Knuth
though.  I didn't mean to imply I needed such code; I've had it for a
while and have had interesting success with it :)

Chip

--
James Turner                turnerjh@pattern.net         UIN: 1102038
                            http://www.vuse.vanderbilt.edu/~turnerjh/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST