delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/22/07:43:40

Newsgroups: comp.os.msdos.djgpp
From: manni DOT heumann AT gmx DOT de (Manni Heumann)
Subject: Re: randN
References: <383904BA DOT AE45DCDE AT mpx DOT com DOT au>
X-Newsreader: News Xpress 2.01
Date: Mon, 22 Nov 1999 10:18:44 GMT
NNTP-Posting-Host: dhcp33-114.uni-bielefeld.de
Message-ID: <3839188d@news.uni-bielefeld.de>
X-Trace: 22 Nov 1999 11:18:53 +0200, dhcp33-114.uni-bielefeld.de
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Try this link:
http://www.ulib.org/webRoot/Books/Numerical_Recipes/bookcpdf/c7-2.pdf

This is part of chapter seven of Numerical Recipes in C. A less specific link 
to the whole book is:
http://www.ulib.org/webRoot/Books/Numerical_Recipes/

Chapter 7 deals with random numbers, 7.2 is about normal distributions 
(including some source code).


In article <383904BA DOT AE45DCDE AT mpx DOT com DOT au>, infinity girl <entropic AT mpx DOT com DOT au> 
wrote:
>
>hey everyone,
>
>    i'm wondering if anyone has written {or come across} C functions
>that produce
>random numbers under a Gaussian {normal} distribution?  In other
>languages they
>are usually called randn or randg.  
>
>    it is quite a common thing..has anyone thought about possibly
>including functions
>like this in libm?  
>
>I'm really looking fr something like this in ANSI C, and not in
>a library..I need source code fr portability.
>
>thanks fr any help,
>daniel.

--

Manni

- Raw text -


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