Click or drag to resize

RandomSourceNext(Int32) Method

Returns a random number less than a specified maximum.

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

Parameters

maxValue  Int32
The exclusive upper bound of the random number returned. Range: maxExclusive ≥ 1.

Return Value

Int32
A 32-bit signed integer less than maxValue.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionmaxValue is zero or negative.
See Also