MT19937 Class |
Namespace: Demo3D.Common.Random
public class MT19937 : Random
The MT19937 type exposes the following members.
| Name | Description | |
|---|---|---|
| MT19937 |
Initializes a new instance of the MersenneTwister class, using a time-dependent default seed value.
| |
| MT19937(Int32) |
Initializes a new instance of the MersenneTwister class, using the specified seed value.
|
| Name | Description | |
|---|---|---|
| Next |
Returns a non-negative random integer.
(Overrides RandomNext.) | |
| Next(Int32, Int32) |
Returns a random integer that is within a specified range.
(Overrides RandomNext(Int32, Int32).) | |
| NextBytes |
Fills the elements of a specified array of bytes with random numbers.
(Overrides RandomNextBytes(Byte).) | |
| Sample |
Returns a random floating-point number between 0.0 and 1.0.
(Overrides RandomSample.) |