Click or drag to resize

ALFGeneratorNext(Int32) Method

Returns a nonnegative random number less than the specified maximum.

Namespace: Altaxo.Calc.Probability
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public override int Next(
	int maxValue
)

Parameters

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

Return Value

Int32
A 32-bit signed integer greater than or equal to 0, and less than maxValue; that is, the range of return values includes 0 but not maxValue.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionmaxValue is less than 0.
See Also