MersenneTwister Class

Mersenne Twister Random Class

Definition

Namespace: Metas.UncLib.Core.RandomGenerator
Assembly: Metas.UncLib.Core (in Metas.UncLib.Core.dll) Version: 2.8.9053.20192
C#
public class MersenneTwister : Random
Inheritance
Object    Random    MersenneTwister
Derived

Constructors

MersenneTwister Initializes a new instance of the MersenneTwister class.
MersenneTwister(UInt32) Initializes a new instance of the MersenneTwister class, using the specified seed value.
MersenneTwister(UInt32) Initializes a new instance of the MersenneTwister class, using the specified seed value.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Init(UInt32) Initializes the MersenneTwister object using the specified seed value.
Init(UInt32) Initializes the MersenneTwister object using the specified seed value.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Next Returns a nonnegative random number.
(Overrides RandomNext)
Next(Int32) Returns a nonnegative random number less than the specified maximum.
(Overrides RandomNext(Int32))
Next(Int32, Int32) Returns a random number within a specified range.
(Overrides RandomNext(Int32, Int32))
NextBytes Fills the elements of a specified array of bytes with random numbers.
(Overrides RandomNextBytes(Byte))
NextDouble Returns a random number between 0.0 and 1.0.
(Overrides RandomNextDouble)
NextUInt Returns a nonnegative random number.
NextUInt(UInt32) Returns a nonnegative random number less than the specified maximum.
NextUInt(UInt32, UInt32) Returns a random number within a specified range.
SampleReturns a random floating-point number between 0.0 and 1.0.
(Inherited from Random)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also