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

◆ Next() [2/3]

virtual int System.Random.Next ( int maxValue)
inlinevirtual

Reimplemented in System.Random.ThreadSafeRandom.

Definition at line 656 of file Random.cs.

657 {
658 if (maxValue < 0)
659 {
661 }
662 return _impl.Next(maxValue);
663 }
static void ThrowMaxValueMustBeNonNegative()
Definition Random.cs:726
readonly ImplBase _impl
Definition Random.cs:631

References System.Random._impl, System.Random.ImplBase.Next(), and System.Random.ThrowMaxValueMustBeNonNegative().