NextInt Method

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image
Generates a random int over the range 0 to int.MaxValue, inclusive. This method differs from Next() only in that the range is 0 to int.MaxValue and not 0 to int.MaxValue-1. The slight difference in range means this method is slightly faster than Next() but is not functionally equivalent to System.Random.Next().

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

Syntax

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

Return Value

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

See Also