







|
| Lidgren Network Library documentation |
| NetRandom..::..Next Method (Int32, Int32) |
| NetRandom Class See Also Send Feedback |
Generates a random int over the range lowerBound to upperBound-1, and not including upperBound.
upperBound must be >= lowerBound. lowerBound may be negative.
Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)
Syntax
| C# |
|---|
public int Next( int lowerBound, int upperBound ) |
| Visual Basic |
|---|
Public Function Next ( _ lowerBound As Integer, _ upperBound As Integer _ ) As Integer |
| Visual C++ |
|---|
public: int Next( int lowerBound, int upperBound ) |
Parameters
- lowerBound
- Type: System..::..Int32
[Missing <param name="lowerBound"/> documentation for "M:Lidgren.Network.NetRandom.Next(System.Int32,System.Int32)"]
- upperBound
- Type: System..::..Int32
[Missing <param name="upperBound"/> documentation for "M:Lidgren.Network.NetRandom.Next(System.Int32,System.Int32)"]
Return Value
[Missing <returns> documentation for "M:Lidgren.Network.NetRandom.Next(System.Int32,System.Int32)"]
