MersenneTwister is a C++ class for generating 32-bit random numbers as integers or floating-point. Seeds can be obtained automatically from /dev/urandom or system time, and the generator state may be saved and restored. It includes an example program and performance tests.
|Tags||Software Development Libraries Scientific/Engineering Mathematics|
|Licenses||LGPL BSD Revised|
|Operating Systems||OS Independent|
Release Notes: This release focuses on portability and reliability. Instances of deprecated C++ were cleaned up. Operations were rewritten to work even in uncommon environments. The test program was toughened and expanded. A slight correction was made in the label for the standard deviation parameter. A copy constructor and operator were added. Seed correlations, generator functions, output sequences, and save formats are identical to Version 1.0.
Release Notes: This release adds a revised seeding algorithm, changes the license from LGPL to BSD, adds access to normal (Gaussian) distributions, and adds performance optimizations and 64-bit portability fixes.
Release Notes: The list of included headers has been corrected.
Release Notes: A fix for a problem when compiling with gcc 3.0, and access to numbers in (0,1) and (0,n) ranges.
Release Notes: Fixes for a seed overflow on 64-bit processors, and improved uniformity of integer [0,n] generation.