random number generator

Bob Babcock PEPRBV%CFAAMP.BITNET at husc6.harvard.EDU
Sun Feb 14 19:52:04 AEST 1988


>I need a random number generator with a Gaussian distribution. It
>should have a settable standard deviation. I would prefer it
>written in C but any language would be appreciated. Thanks

Check out Knuth's Seminumerical Algorithms book, section 3.4.1.
Several methods are given, in a form that could easily be
converted to code.



More information about the Comp.lang.c mailing list