Method | Description | |
---|---|---|
Bool ( ) : bool |
Draw a random boolean with equal probability of drawing true or false. Thread-safe if Rand() is thread-safe.
|
|
Byte ( ) : byte |
Draw a random and uniform byte. Thread-safe if Rand() is thread-safe. The least significant bits are not that statistically random, hence we must use the most significant bits by a bit-shift. |
|
RanUInt32 ( ) : System |
Constructs the PRNG-object.
|
|
Rand ( ) : |
Draw a random number in inclusive range {0, .., RandMax}
|
|
Uniform ( ) : double |
Draw a uniform random number in the exclusive range (0,1). Thread-safe if Rand() is thread-safe. Assumes that Rand() is in {0, .., RandMax}. |
Method | Description | |
---|---|---|
Seed ( ) : void |
Seed with the time of day.
|
|
Seed ( |
Seed with an integer.
|