RANLIB, a C++ library which produces random samples from Probability Density Functions (PDF's), including Beta, Chi-square Exponential, F, Gamma, Multivariate normal, Noncentral chi-square, Noncentral F, Univariate normal, random permutations, Real uniform, Binomial, Negative Binomial, Multinomial, Poisson and Integer uniform, by Barry Brown and James Lovato.
RANLIB relies on streams of uniform random numbers generated by a lower level package called RNGLIB. A copy of RNGLIB must be available in order for RANLIB to executed. The RNGLIB routines provide 32 virtual random number generators. Each generator can provide 1,048,576 blocks of numbers, and each block is of length 1,073,741,824. Any generator can be set to the beginning or end of the current block or to its starting value. Packaging is provided so that if these capabilities are not needed, a single generator with period 2.3 X 10^18 is seen.
The routines, and the probability density functions they sample, include:
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
RANLIB is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.
ASA183, a C++ library which implements a random number generator (RNG), by Wichman and Hill. This is a C++ version of Applied Statistics Algorithm 183.
FAURE, a C++ library which computes elements of a Faure quasirandom sequence.
HALTON, a C++ library which computes elements of a Halton quasirandom sequence.
HAMMERSLEY, a C++ library which computes elements of a Hammersley quasirandom sequence.
NIEDERREITER2, a C++ library which computes elements of a Niederreiter quasirandom sequence with base 2.
NORMAL, a C++ library which computes elements of a sequence of pseudorandom normally distributed values.
PROB, a C++ library which evaluates, samples and inverts a number of Probability Density Functions (PDF's).
rand48_test, a C++ program which demonstrates the use of the rand48 family of random number generators (RNG's) available in the C/C++ standard library.
RANDLC, a C++ library which implements a random number generator (RNG) used by the NAS Benchmark programs.
RANDOM_SORTED, a C++ library which generates vectors of random values which are already sorted.
RNGLIB, a C++ library which implements a random number generator (RNG) with splitting facilities, allowing multiple independent streams to be computed, by L'Ecuyer and Cote.
SOBOL, a C++ library which computes elements of a Sobol quasirandom sequence.
UNIFORM, a C++ library which computes elements of a pseudorandom uniform sequence.
VAN_DER_CORPUT, a C++ library which computes elements of a van der Corput quasirandom sequence.
WALKER_SAMPLE, a C++ library which efficiently samples a discrete probability vector using Walker sampling.
Original FORTRAN77 version by Barry Brown, James Lovato. C++ version by John Burkardt.