Hi,
I'm looking for known libraries that are able to generate non uniformly distributed random numbers for C, C++ and Java.
Thanks
Hi,
I'm looking for known libraries that are able to generate non uniformly distributed random numbers for C, C++ and Java.
Thanks
I got some interesting responses in this related question:
http://stackoverflow.com/questions/1396978/biased-random-number-sources
For Java, one option is my Uncommons Maths library. It supports Uniform, Gaussian, Binomial, Poisson and Exponential distributions. There is a WebStart demo so you can see what it does.
Have a look at Alglib's implementations, they have a few basic distributions implemented in several languages.
Numerical Recipes discusses a few algorithms for random number generators.
Boost has a fairly wide selection of random number generates, plus the ability to filter these through several distributions.
The GNU Scientific Library (GSL), http://www.gnu.org/software/gsl/, provides numerous non-uniform random distributions -- see Chapter 19 of the Manual, "Random Number Distributions". (Uniform random number generators are in Chapter 17, "Random Number Generation"). The implementation is in C.