tModLoader v2023.01
A mod to make and play Terraria mods
|
Public Member Functions | |
UnifiedRandom (int Seed) | |
virtual int | Next () |
virtual int | Next (int maxValue) |
Generates a random value between 0 (inclusive) and maxValue (exclusive). For example Next(4) can return one of 4 values: 0, 1, 2, or 3. It will not return 4. More... | |
virtual int | Next (int minValue, int maxValue) |
Generates a random value between minValue (inclusive) and maxValue (exclusive). For example Next(4, 8) can return 4, 5, 6, or 7. It will not return 8. More... | |
virtual void | NextBytes (byte[] buffer) |
virtual double | NextDouble () |
Protected Member Functions | |
virtual double | Sample () |
|
virtual |
Generates a random value between 0 (inclusive) and maxValue (exclusive).
For example Next(4)
can return one of 4 values: 0, 1, 2, or 3. It will not return 4.
maxValue |
ArgumentOutOfRangeException |
|
virtual |
Generates a random value between minValue (inclusive) and maxValue (exclusive).
For example Next(4, 8)
can return 4, 5, 6, or 7. It will not return 8.
minValue | |
maxValue |
ArgumentOutOfRangeException |