python_random_test, a Python code which demonstrates some features of random number generation.


The computer code and data files described and made available on this web page are distributed under the MIT license.


python_random_test is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and a Python version.

Related Data and Programs:

asa183, a Python code which implements a pseudorandom number generator, by Wichman and Hill. This is a MATLAB version of Applied Statistics Algorithm 183.

normal, a Python code which computes elements of a sequence of pseudorandom normally distributed values.

random_sorted, a Python code which generates vectors of random values which are already sorted.

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

rnglib, a Python code which implements a random number generator (RNG) with splitting facilities, allowing multiple independent streams to be computed, by L'Ecuyer and Cote.

uniform, a Python code which computes elements of a uniform pseudorandom sequence.

Source Code:

Last revised on 31 December 2023.