Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Random Numbers with Probability Distribution in C (http://www.go4expert.com/forums/random-probability-distribution-c-t9352/)

FrankDrebon 15Mar2008 16:59

Random Numbers with Probability Distribution in C
 
Hi all,

Does anyone have any experience with generating random numbers that distribute themselves according to a given probability distribution?

I am having trouble finding information on how to do this. I can find subroutines that output random numbers that conform to Gaussian distributions and other standard distributions but would like to generate random numbers based on the Maxwell Speed Distribution (proportional to x^2 exp(-x^2)).

Any advice would be appreciated.

Many thanks,

FD

asadullah.ansari 17Mar2008 14:42

Re: Random Numbers with Probability Distribution in C
 
You can search on net this . You can get free siurce code also.


All times are GMT +5.5. The time now is 06:37.