Mersenne |
[SerializableAttribute] public class MersenneTwister : RandomSource
The MersenneTwister type exposes the following members.
| Name | Description | |
|---|---|---|
| MersenneTwister | Initializes a new instance of the MersenneTwister class using a seed based on time and unique GUIDs. | |
| MersenneTwister(Boolean) | Initializes a new instance of the MersenneTwister class using a seed based on time and unique GUIDs. | |
| MersenneTwister(Int32) | Initializes a new instance of the MersenneTwister class. | |
| MersenneTwister(Int32, Boolean) | Initializes a new instance of the MersenneTwister class. |
| Name | Description | |
|---|---|---|
| DoSample |
Returns a random double-precision floating point number greater than or equal to 0.0, and less than 1.0.
(Overrides RandomSourceDoSample) | |
| DoSampleBytes |
Fills the elements of a specified array of bytes with random numbers in full range, including zero and 255 (MaxValue).
(Overrides RandomSourceDoSampleBytes(Byte)) | |
| DoSampleInt32WithNBits |
Returns a random N-bit signed integer greater than or equal to zero and less than 2^N.
N (bit count) is expected to be greater than zero and less than 32 (not verified).
(Inherited from RandomSource) | |
| DoSampleInt64WithNBits |
Returns a random N-bit signed long integer greater than or equal to zero and less than 2^N.
N (bit count) is expected to be greater than zero and less than 64 (not verified).
(Inherited from RandomSource) | |
| DoSampleInteger |
Returns a random 32-bit signed integer greater than or equal to zero and less than MaxValue (Overrides RandomSourceDoSampleInteger) | |
| DoSampleInteger(Int32) |
Returns a random 32-bit signed integer within the specified range.
(Inherited from RandomSource) | |
| DoSampleInteger(Int32, Int32) |
Returns a random 32-bit signed integer within the specified range.
(Inherited from RandomSource) | |
| Doubles(Double, Int32) | Fills an array with random numbers greater than or equal to 0.0 and less than 1.0. | |
| Doubles(Int32, Int32) | Returns an array of random numbers greater than or equal to 0.0 and less than 1.0. | |
| DoubleSequence | Returns an infinite sequence of random numbers greater than or equal to 0.0 and less than 1.0. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Next |
Returns a random 32-bit signed integer greater than or equal to zero and less than MaxValue.
(Inherited from RandomSource) | |
| Next(Int32) |
Returns a random number less then a specified maximum.
(Inherited from RandomSource) | |
| Next(Int32, Int32) |
Returns a random number within a specified range.
(Inherited from RandomSource) | |
| NextBytes |
Fills the elements of a specified array of bytes with random numbers.
(Inherited from RandomSource) | |
| NextDouble | Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0. (Inherited from Random) | |
| NextDoubles(Double) |
Fills an array with uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Inherited from RandomSource) | |
| NextDoubles(Int32) |
Returns an array of uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Inherited from RandomSource) | |
| NextDoubleSequence |
Returns an infinite sequence of uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Inherited from RandomSource) | |
| NextInt32s(Int32) |
Returns an array with random 32-bit signed integers greater than or equal to zero and less than MaxValue.
(Inherited from RandomSource) | |
| NextInt32s(Int32) |
Fills an array with random 32-bit signed integers greater than or equal to zero and less than MaxValue.
(Inherited from RandomSource) | |
| NextInt32s(Int32, Int32) |
Returns an array with random 32-bit signed integers within the specified range.
(Inherited from RandomSource) | |
| NextInt32s(Int32, Int32) |
Fills an array with random numbers within a specified range.
(Inherited from RandomSource) | |
| NextInt32s(Int32, Int32, Int32) |
Returns an array with random 32-bit signed integers within the specified range.
(Inherited from RandomSource) | |
| NextInt32s(Int32, Int32, Int32) |
Fills an array with random numbers within a specified range.
(Inherited from RandomSource) | |
| NextInt32Sequence |
Returns an infinite sequence of random 32-bit signed integers greater than or equal to zero and less than MaxValue.
(Inherited from RandomSource) | |
| NextInt32Sequence(Int32, Int32) |
Returns an infinite sequence of random numbers within a specified range.
(Inherited from RandomSource) | |
| Sample |
Returns a random number between 0.0 and 1.0.
(Inherited from RandomSource) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| NextBigIntegerSequence |
Returns an infinite sequence of uniform random BigInteger within the specified range.
(Defined by RandomExtensions) | |
| NextBoolean |
Returns a random boolean.
(Defined by RandomExtensions) | |
| NextBytes |
Returns an array of uniform random bytes.
(Defined by RandomExtensions) | |
| NextDecimal |
Returns a nonnegative decimal floating point random number less than 1.0.
(Defined by RandomExtensions) | |
| NextDoubles |
Fills an array with uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Defined by RandomExtensions) | |
| NextDoubles |
Returns an array of uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Defined by RandomExtensions) | |
| NextDoubleSequence |
Returns an infinite sequence of uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Defined by RandomExtensions) | |
| NextFullRangeInt32 |
Returns a random number of the full Int32 range.
(Defined by RandomExtensions) | |
| NextFullRangeInt64 |
Returns a random number of the full Int64 range.
(Defined by RandomExtensions) | |
| NextInt32s |
Fills an array with uniform random 32-bit signed integers greater than or equal to zero and less than MaxValue.
(Defined by RandomExtensions) | |
| NextInt32s |
Fills an array with uniform random 32-bit signed integers within the specified range.
(Defined by RandomExtensions) | |
| NextInt32Sequence |
Returns an infinite sequence of uniform random 32-bit signed integers within the specified range.
(Defined by RandomExtensions) | |
| NextInt64 |
Returns a nonnegative random number less than MaxValue.
(Defined by RandomExtensions) |