Click or drag to resize

Ranmar Class

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.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Probability.OldRanmar

Namespace: Altaxo.Calc.Probability.Old
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class Ranmar

The Ranmar type exposes the following members.

Constructors
 NameDescription
Public methodRanmarInitializes a new instance of the Ranmar class
Public methodRanmar(UInt32)Initializes a new instance of the Ranmar class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSeed 
Public methodSeed(UInt32) 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodval 
Top
Remarks
C#
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).
See Also