Returns a random integer within the specified range.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public int Next(
	int minValue,
	int maxValue
)
Visual Basic (Declaration)
Public Function Next ( _
	minValue As Integer, _
	maxValue As Integer _
) As Integer
Visual C++
public:
int Next(
	int minValue, 
	int maxValue
)

Parameters

minValue
Type: System..::.Int32
The lower bound.
maxValue
Type: System..::.Int32
The upper bound.

Return Value

A random integer greater than or equal to minValue, and less than or equal to maxValue.

See Also