|
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
)
Public Overrides Function Next (
maxValue As Integer
) As Integer
Request Example
View SourceParameters
- 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:
Int32Returns 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