Rand |
public class RandMT : RandCustomBase
The RandMT type exposes the following members.
Name | Description | |
---|---|---|
RandMT | Creates a random number generator with a random seed. | |
RandMT(Int32) | Creates a random number generator seeded with a specified integer. | |
RandMT(Int32) | Creates a random number generator seeded with a specified integer array. |
Name | Description | |
---|---|---|
NextDouble53 | This method was in the original C code. It is probably a cryptic way of combining two 32-bit numbers into a 64-bit number which then has 53 bits converted into a floating-point number so that all possible values can be produced. A shift-and-multiply is an easier way to do that. This method remains in the class as a reference. | |
NextInt64 | (Overrides RandCustomBaseNextInt64) | |
RandUint32 | Generates a random unsigned integer in the interval [0,0xFFFFFFFF]. This methods was a public function in the original C code, so it remains here as a reference. It is not part of the standard Random class interface. |
Long running tests have observed the expected minimum values Next 0 (0x0) and Core 0.0 and the expected maximum Next 2147483646 (0x7FFFFFFE) from Core 0.999999999790607.