Re: [Dev-C++] gaussian random number
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jorge A. <jab...@ma...> - 2003-03-31 13:33:23
|
---------- 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 > |