Date: Mon, 22 Nov 1999 13:33:57 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: infinity girl cc: djgpp AT delorie DOT com Subject: Re: randN In-Reply-To: <383904BA.AE45DCDE@mpx.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.