Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Next() [2/3]

override int System.Random.ThreadSafeRandom.Next ( int maxValue)
inlinevirtual

Reimplemented from System.Random.

Definition at line 33 of file Random.cs.

34 {
35 if (maxValue < 0)
36 {
38 }
39 return LocalRandom.Next(maxValue);
40 }
static XoshiroImpl LocalRandom
Definition Random.cs:15
static void ThrowMaxValueMustBeNonNegative()
Definition Random.cs:726

References System.Random.ThreadSafeRandom.LocalRandom, and System.Random.ThrowMaxValueMustBeNonNegative().