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 :)


James Turner               UIN: 1102038

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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