rnglib


rnglib, a C code which implements random number generators (RNG) which can generate one or more streams of random numbers.

The code is a portable set of software tools for uniform random variate generation. It provides for multiple generators running simultaneously, and each generator has its sequence of numbers partitioned into many long disjoint substreams. Simple procedure calls allow the user to make any generator jump ahead to the beginning of its next substream.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

rnglib is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

rnglib_test

asa183, a C code which implements the Wichman-Hill random number generator (RNG).

c_random_test, C codes which illustrate the use of C's random number generator routines.

log_normal_truncated_ab, a C code which returns quantities associated with the log normal Probability Distribution Function (PDF) truncated to the interval [A,B].

normal, a C code which implements random number generators (RNG) for normally distributed values.

randlc, a C code which implements a random number generator (RNG) used by the NAS Benchmark programs.

random_mpi, a C code which demonstrates one way to generate the same sequence of random numbers for both sequential execution and parallel execution under MPI.

ranlib, a C code 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.

uniform, a C code which implements random number generators (RNG) for a variety of arithmetic types.

van_der_corput, a C code which computes elements of a 1D van der Corput Quasi Monte Carlo (QMC) sequence using a simple interface.

ziggurat, a C code which generates points from a uniform, normal or exponential distribution, using the ziggurat method.

Reference:

  1. Pierre LEcuyer, Serge Cote,
    Implementing a Random Number Package with Splitting Facilities,
    ACM Transactions on Mathematical Software,
    Volume 17, Number 1, March 1991, pages 98-111.

Source Code:


Last revised on 03 August 2019.