Ranmar Type

Universal random number generator proposed by Marsaglia, Zaman, and Tsang. It has a period of 2^144 = 2*10^43, and is completely portable. Only 24 bits are garantueed to be completely random.

             Upto now this generator passes all statistical tests on randomness.
             Ranmar generates a sequence of random numbers uniformly distributed in the
             interval (0,1), the end points excluded.
             The seed value must be in the range 0 <= ijkl <= 900 000 000.
            
             References:
            
              1. G. Marsaglia and A. Zaman, Toward a Universal Random Number Generator,
                 Florida State University FSU-SCRI-87-50 (1987).
              2. F. James, A Review of Pseudorandom Number Generators, Computer Phys.
                 Comm. 60, 329-344 (1990).

Constructors

Constructor Description

Ranmar()

Full Usage: Ranmar()

Ranmar(seed)

Full Usage: Ranmar(seed)

Parameters:
    seed : uint32

seed : uint32

Instance members

Instance member Description

this.Seed

Full Usage: this.Seed

this.Seed

Full Usage: this.Seed

Parameters:
    ijkl : uint32

ijkl : uint32

this.``val``

Full Usage: this.``val``

Returns: float

Returns: float