views:

171

answers:

4

I want some help in programming a random generator for different types of distribution using C++ language. for the following:

  • Geometric distribution
  • Hypergeometric distribution
  • Weibull distribution
  • Rayleigh distribution
  • Erlang distribution
  • Gamma distribution
  • Poisson distribution

Thanks.

+2  A: 

Boost Math Library contains all of that you need.

Kirill V. Lyadvinsky
A: 

if you want to avoid the big size of boost, you can try AlgLib www.alglib.net

uray
Thank you all guys. I really appreciate it.Good luck.Best Regards,
Bader
+3  A: 

The Boost Random Number library is very good. There's a simple example of how its distributions work at http://stackoverflow.com/questions/2254909/boost-random-number-generator.

anon
A: 

See Random Number Generation in C++ TR1.

You may not see Erlang in the C++ TR1 documentation, but an Erlang distribution is just a Gamma distribution with an integer shape parameter.

John D. Cook