www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/22/09:15:42

Date: Mon, 22 Nov 1999 13:33:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: infinity girl <entropic AT mpx DOT com DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: randN
In-Reply-To: <383904BA.AE45DCDE@mpx.com.au>
Message-ID: <Pine.SUN.3.91.991122133123.4922F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019