gjrand 1.1.0 review

Download
by rbytes.net on

gjrand is a programmer's library for pseudo-random numbers

License: (FDL) GNU Free Documentation License
File size: 0K
Developer: G. Jones
0 stars award from rbytes.net

gjrand is a programmer's library for pseudo-random numbers. gjrand library includes random number generator testing code and is intended for simulation, games, and "Monte-Carlo" algorithms.

It produces pseudo-random numbers of the types: uniform integers, uniform reals, normally distributed reals, binomial, Poisson, integer permutation, chi-squared distribution, and spherical distribution.

The library provides API calls for the following:

seed the generator
save and restore state
generate integer uniform random numbers
generate integer special: coins, biased coins, dice, shuffle, poisson
generate floating point uniform numbers
generate floating point special:
normal distribution
chi-square distribution
in a n-dimensional sphere
on the surface of a n-dimensional sphere
compatibility functions for rand() family and rand48() family.

Except for most of the compatibility functions, gjrand should be thread-safe. It is written in C, but appears to also be legal C++.

There are also test programs that test all of the above and could also be used or adapted to test other alleged random sources. Some alternative (mostly bad) pseudo random generators are also provided so you can amuse yourself by watching tests fail.

gjrand 1.1.0 keywords