Click or drag to resize
Accord.NET (logo)

ThreadSafeRandomNext Method (Int32)

Returns a nonnegative random number less than the specified maximum.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public override int Next(
	int maxValue
)
Request Example View Source

Parameters

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

Return Value

Type: Int32
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