Click or drag to resize

FastRandomNext Method (Int32)

Returns a nonnegative random number less or equal than the specified maximum.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public int Next(
	int maxValue
)

Parameters

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

Return Value

Type: Int32
A 32-bit signed integer greater than or equal to zero, and less or equal than maxValue. The range of return values includes zero and maxValue.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionmaxValue is less than zero.
See Also