Click or drag to resize

Ran250 Class

Ran250: the Kirkpatrick-Stoll generator "R250". Returns integer random numbers uniformly distributed within [0,2147483646]. Notes: - SERIOUS DEFICIENCIES IN SOME PHYSICAL SIMULATIONS HAVE BEEN FOUND!
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Probability.OldRandomGenerator
    Altaxo.Calc.Probability.OldRan250

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

The Ran250 type exposes the following members.

Constructors
 NameDescription
Public methodRan250Initializes a new instance of the Ran250 class
Top
Properties
 NameDescription
Public propertyMaximumThe maximum value of the random number which can be returned.
(Inherited from RandomGenerator)
Public propertySeedThe seed value.
(Inherited from RandomGenerator)
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)
Public methodLong
(Overrides RandomGeneratorLong)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected fieldmax_valUniform long int values within [0...max_val].
(Inherited from RandomGenerator)
Protected fieldseedThe seed of the random generator.
(Inherited from RandomGenerator)
Top
Remarks
C#
Notes: - SERIOUS DEFICIENCIES IN SOME PHYSICAL SIMULATIONS HAVE BEEN FOUND
    (e.g. in the Ising model using the Wolff cluster update algorithm)

       - The period is 2^250

       - At least 32 bit unsigned long is required.

       - References:
          o S. Kirkpatrick and E. Stoll, "A Very Fast
            Shift-Register Sequence Random Number Generator",
            Journal of Computational Physics 40, 517 (1981)
          o W.L. Maier, "A Fast Pseudo Random Number Generator",
            Dr. Dobb's Journal, May, 152-157 (1991)
See Also