Click or drag to resize

RandomGenerator Class

Base class for all random generators
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Probability.OldRandomGenerator
    More

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

The RandomGenerator type exposes the following members.

Constructors
 NameDescription
Public methodRandomGeneratorConstructs the random generator with a seed value of 0.
Public methodRandomGenerator(String)Constructs the random generator with a seed using the hash value of a given string.
Public methodRandomGenerator(UInt32)Constructs the random generator with a seed value.
Top
Properties
 NameDescription
Public propertyStatic memberDefaultGeneratorThe default random generator used to produce random values.
Public propertyMaximumThe maximum value of the random number which can be returned.
Public propertySeedThe seed value.
Top
Methods
 NameDescription
Protected methodStatic memberCopySign Return first number with sign of second number
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 methodLongThe generation function.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberUniqueSeed Generate an unique seed using the default seed generator, which is currently RNGCryptoServiceProvider
Top
Fields
 NameDescription
Protected fieldStatic memberDBL_MAXMaximum value of a System.Double.
Protected fieldStatic memberDBL_MAX_EXPMaximum binary exponent of a Double.
Protected fieldStatic memberDBL_MINSmallest positive value of a System.Double.
Protected fieldStatic memberdefaultRandomGeneratorThis is the default state of the art random genenerator to produce random numbers.
Protected fieldStatic memberM_LN2Natural logarithm of 2.
Protected fieldmax_valUniform long int values within [0...max_val].
Protected fieldseedThe seed of the random generator.
Top
See Also
Inheritance Hierarchy