Math::Random::TT800(3pm)

Math::Random::TT8003pm

Matsumoto's tt800 pseudorandom number generator

Usage

        use Math::Random::TT800;
        my $tt = new Math::Random::TT800;
        $value = $tt->next();
        $ivalue = $tt->next_int();

Overview

This perl extension module implements M. Matsumoto's twisted generalized shift register generator called TT800 as described in his article published in ACM Transactions on Modelling and Computer Simulation, Vol. 4, No. 3, 1994, pages 254-266.

Functions

new
        my $tt = new Math::Random::TT800;
        my $tt = new Math::Random::TT800 @seeds;

Create a new TT800 object. Providing seeds is optional. A TT800 takes 25 integers as seed which must not be all zero. If less than 25 integers are supplied, the rest are taken from the default seed.

next
        $value = $tt->next();

next returns the next pseudorandom number from the TT800 object as a floating point value in the range [0,1).

next_int
        $ivalue = $tt->next_int();

next_int returns a integer value filled with 32 random bits.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

From libmath-random-tt800-perl 1.01-4+b4 in Debian 13 (Trixie). Parsed by carta from the page's man source.