|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Collaboration diagram for Terraria.Utilities.UnifiedRandom:Public Member Functions | |
| UnifiedRandom () | |
| UnifiedRandom (int Seed) | |
| void | SetSeed (int Seed) |
| virtual int | Next () |
| 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. | |
| 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. | |
| virtual double | NextDouble () |
| virtual void | NextBytes (byte[] buffer) |
Protected Member Functions | |
| virtual double | Sample () |
Private Member Functions | |
| int | InternalSample () |
| double | GetSampleForLargeRange () |
Private Attributes | |
| int | inext |
| int | inextp |
| int[] | SeedArray = new int[56] |
Static Private Attributes | |
| const int | MBIG = int.MaxValue |
| const int | MSEED = 161803398 |
| const int | MZ = 0 |
Definition at line 6 of file UnifiedRandom.cs.