TinyMT32

From Fracterebus
Jump to navigation Jump to search

The primary random number generation within Fracterebus is an implementation of TinyMT32, which stands for 32-bit Mersenne Twister.

It was based on the C implementation of TinyMT32 v1.1.2 found at https://github.com/MersenneTwister-Lab/TinyMT

It was ported to C# by NerdOfEpic based on these files:

Notes:

  • Things were renamed to align with my interface.
  • State is initialized with known values, and cannot be overridden except for seed.

Removed Features:

  • The Union based functions.
  • Float generation functions I didn't need.
  • Init by array and supporting functions.
  • MExp function.

The original Tiny Mersenne Twister only 127 bit internal state was authored by:

  • Mutsuo Saito (Hiroshima University)
  • Makoto Matsumoto (University of Tokyo)

Copyright(C) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima University and The University of Tokyo. All rights reserved.

The 3-clause BSD License is applied to this software, see LICENSE.txt at: https://github.com/MersenneTwister-Lab/TinyMT/blob/master/LICENSE.txt