Mersenne Twister based random.
More...
|
| | MTRandom () |
| | Constructor with randomized seed.
|
| |
| | MTRandom (int seed) |
| | Constructor with provided 32 bit seed.
|
| |
| override int | Next () |
| | Generates a random value that is greater or equal than 0 and less than Int32.MaxValue.
|
| |
| override int | Next (int minValue, int maxValue) |
| |
| override void | NextBytes (byte[] buffer) |
| |
| override void | NextBytes (Span< byte > buffer) |
| |
| override int | Next (int maxValue) |
| | Returns a random value is greater or equal than 0 and less than maxValue.
|
| |
| int | NextInt32 () |
| | Generates a random value greater or equal than 0 and less or equal than Int32.MaxValue (inclusively)
|
| |
| override double | NextDouble () |
| | Returns random value larger or equal to 0.0 and less than 1.0.
|
| |
Mersenne Twister based random.
◆ MTRandom() [1/2]
| Barotrauma.MTRandom.MTRandom |
( |
| ) |
|
Constructor with randomized seed.
◆ MTRandom() [2/2]
| Barotrauma.MTRandom.MTRandom |
( |
int | seed | ) |
|
Constructor with provided 32 bit seed.
◆ Next() [1/3]
| override int Barotrauma.MTRandom.Next |
( |
| ) |
|
Generates a random value that is greater or equal than 0 and less than Int32.MaxValue.
◆ Next() [2/3]
| override int Barotrauma.MTRandom.Next |
( |
int | maxValue | ) |
|
Returns a random value is greater or equal than 0 and less than maxValue.
◆ Next() [3/3]
| override int Barotrauma.MTRandom.Next |
( |
int | minValue, |
|
|
int | maxValue ) |
◆ NextBytes() [1/2]
| override void Barotrauma.MTRandom.NextBytes |
( |
byte[] | buffer | ) |
|
◆ NextBytes() [2/2]
| override void Barotrauma.MTRandom.NextBytes |
( |
Span< byte > | buffer | ) |
|
◆ NextDouble()
| override double Barotrauma.MTRandom.NextDouble |
( |
| ) |
|
Returns random value larger or equal to 0.0 and less than 1.0.
◆ NextInt32()
| int Barotrauma.MTRandom.NextInt32 |
( |
| ) |
|
Generates a random value greater or equal than 0 and less or equal than Int32.MaxValue (inclusively)
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/Utils/MTRandom.cs