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).
| Constructor | Description |
Full Usage:
Ranmar()
|
|
Full Usage:
Ranmar(seed)
Parameters:
uint32
|
|
| Instance member | Description |
Full Usage:
this.Seed
|
|
Full Usage:
this.Seed
Parameters:
uint32
|
|
Full Usage:
this.``val``
Returns: float
|
|