---------- Original Message ----------------------------------
From: swagat kumar <sw...@ma...>
Reply-To: sw...@ma...
Date: Sat, 29 Mar 2003 07:49:50 -0800 (PST)
Yes, the generation of random numbers has always been trickery and a challenge to mathematicians. The rand() function of the c++ library generates pseudorandom numbers uniformly distributed. Check
http://www2.kenyon.edu/depts/physics/people/sullivan/Research/BrownianMotion/random.html
to see a method to obtain numbers responding to a gaussian distribution.
I remember the book "numerical recipes" shows an algorithm to generate random numbers. I've got the fortran version of this book, however there is a C++ version I believe (hey, algorithms are beyond a programming language!).
>HI !
>friends,
>is it possible to generate random number with gaussian distribution ( say, with mean a and variance p).are there any such random function in c++ library.
>
>thanks
>
>
>
>_____________________________________________________________
>Get email for your site ---> http://www.everyone.net
>
>_____________________________________________________________
>Select your own custom email address for FREE! Get yo...@yo... w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:
>The Definitive IT and Networking Event. Be There!
>NetWorld+Interop Las Vegas 2003 -- Register today!
>http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|