Ran Lux.Next Method
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Next() | Returns a nonnegative random number. |
Next( | Returns a non-negative random integer that is less than the specified maximum. |
Next( | Returns a random integer that is within a specified range. |
Next
Returns a nonnegative random number.
public override int Next()
Return Value
Int32A 32-bit signed integer greater than or equal to zero and less than MaxValue.
Next(Int32, Int32)
Returns a random integer that is within a specified range.
public override int Next(
int minValue,
int maxValue
)
Parameters
- minValue Int32
- The inclusive lower bound of the random number returned.
- maxValue Int32
- The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.
Return Value
Int32A 32-bit signed integer 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.
Exceptions
Argument | minValue is greater than maxValue. |