gjrand

A programmer's library for pseudo-random numbers.
Download

gjrand Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • G. Jones
  • Publisher web site:

gjrand Tags


gjrand Description

A programmer's library for pseudo-random numbers. 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 distributionchi-square distributionin a n-dimensional sphereon 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. What's New in This Release: · There are major changes in library internals. Consequences include: 3.0.0 makes different sequences for the same seed as 2.1.0 . 3.0.0 uses a different save state format than 2.1.0, therefore you can't save on one version and restore on the other (returns failure code). 3.0.0 often makes makes slightly smaller faster code. Makes much faster code for a few functions.


gjrand Related Software