Returns a nonnegative random number less than the specified maximum.

Namespace:  AForge
Assembly:  AForge (in AForge.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public override int Next(
	int maxValue
)

Parameters

maxValue
Type: System..::.Int32
The exclusive upper bound of the random number to be generated. maxValue must be greater than or equal to zero.

Return Value

Returns a 32-bit signed integer greater than or equal to zero, and less than maxValue; that is, the range of return values ordinarily includes zero but not maxValue.

Remarks

See Next(Int32) for more information.

See Also