Dear Iryna,
I'm not 100% sure, but I think you have a standard C function (in
stdlib.h or math.h, or something like that) that does the job.
If you want to recode it yourself, take a look at this:
http://www.library.cornell.edu/nr/bookcpdf/c7-2.pdf
Hope this helps
Nico
Petrovska, Iryna wrote:
Dear list,
Has anyone got a very simple/basic C code to generate normally
distributed (Gaussian) random numbers.
I need to be able to quickly generate N number of realizations to be
later transformed into permeability distribution.
Thanks a lotfor your help!
Ira Petrovska
--
Nicolas Gilardi
Particle Physics Experiment group
University of Edinburgh
CERN, Bat. 2, Bureau 1-028
CH-1211 Genève 23, Switzerland
tel: +41 22 767 4263 ; fax: +41 22 767 94 25
e-mail: [EMAIL PROTECTED] ; web: http://baikal-bangkok.org/~nicolas
* By using the ai-geostats mailing list you agree to follow its rules
( see http://www.ai-geostats.org/help_ai-geostats.htm )
* To unsubscribe to ai-geostats, send the following in the subject or in the
body (plain text format) of an email message to [EMAIL PROTECTED]
Signoff ai-geostats