Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Any normally-distributed random number functions? Message-ID: <1991Apr5.182451.3399@zoo.toronto.edu> Date: Fri, 5 Apr 1991 18:24:51 GMT References: <1991Apr04.183739.4876@group1.UUCP> <15714@smoke.brl.mil> Organization: U of Toronto Zoology In article <15714@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: >>I am looking for a C or Fortran function that would generate a >>pseudorandom variable but with a *normal* distribution... > >Gee, for all questions of this type the first thing you MUST do is >to see what Knuth had to say about it in Vol. 2 ... And typically the second thing you do is dig out "Numerical Recipes" and see what it has to say. Random Numbers is chapter 7. -- "The stories one hears about putting up | Henry Spencer @ U of Toronto Zoology SunOS 4.1.1 are all true." -D. Harrison| henry@zoo.toronto.edu utzoo!henry