Click or drag to resize

FastRandomNext(Int32) Method

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

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

Parameters

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

Return Value

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