Mail Archives: djgpp/1999/11/22/09:15:42
On Mon, 22 Nov 1999, infinity girl wrote:
>
> i'm wondering if anyone has written {or come across} C functions
> that produce random numbers under a Gaussian {normal} distribution?
Check out the Numerical Recipes book, it has some.
> In other languages they are usually called randn or randg.
I don't think that C libraries have such a function, at least not
widely. But if someone writes it and submits it for inclusion in DJGPP,
I'm sure it will be accepted.
> I'm really looking fr something like this in ANSI C, and not in
> a library..I need source code fr portability.
I'm afraid you are out of luck, then. ANSI C doesn't mention such a
function.
- Raw text -