Next Method

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image
Generates a random int over the range 0 to int.MaxValue-1. MaxValue is not generated in order to remain functionally equivalent to System.Random.Next(). This does slightly eat into some of the performance gain over System.Random, but not much. For better performance see: Call NextInt() for an int over the range 0 to int.MaxValue. Call NextUInt() and cast the result to an int to generate an int over the full Int32 value range including negative values.

Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)

Syntax

C#
public int Next()
Visual Basic
Public Function Next As Integer
Visual C++
public:
int Next()

Return Value

[Missing <returns> documentation for "M:Lidgren.Network.NetRandom.Next"]

See Also