IMSL C# Numerical Library

Random.Next Method (Int32)

Returns a nonnegative pseudorandom int.

public override int Next(
   int maxValue
);

Parameters

maxValue
An int which specifies the upper bound of the random number to be generated. maxValue must be greater than or equal to zero.

Return Value

An int greater than or equal to zero and less than maxValue.

See Also

Random Class | Imsl.Stat Namespace | Random.Next Overload List