2

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.

Jon Seigel
  • 12,251
  • 8
  • 58
  • 92
Bader
  • 23
  • 3

3 Answers3

3

The Boost Random Number library is very good. There's a simple example of how its distributions work at Boost random number generator.

Community
  • 1
  • 1
2

Boost Math Library contains all of that you need.

Kirill V. Lyadvinsky
  • 97,037
  • 24
  • 136
  • 212
0

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

uray
  • 11,254
  • 13
  • 54
  • 74