RandomNext Method (Int32, Int32) |
Returns a nonnegative pseudorandom int in the specified range.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public override int Next(
int minValue,
int maxValue
)
Public Overrides Function Next (
minValue As Integer,
maxValue As Integer
) As Integer
public:
virtual int Next(
int minValue,
int maxValue
) override
abstract Next :
minValue : int *
maxValue : int -> int
override Next :
minValue : int *
maxValue : int -> int
Parameters
- minValue
- Type: SystemInt32
An int which specifies the lower bound of the random number
returned.
- maxValue
- Type: SystemInt32
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
Type:
Int32
An
int greater than or equal to
minValue
and less than
maxValue; that is, the range of
return values includes
minValue but not
maxValue. If
minValue equals
maxValue,
minValue is returned.
See Also