FastRandomNext(Int32) Method |
Returns a nonnegative random number less or equal than the specified maximum.
Namespace: NeoAxisAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic 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
See Also