 | ThreadSafeRandomNumberGeneratorNext(Int32, Int32) Method |
Returns a random integer that is within a specified range.
Namespace: SanteDB.CoreAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic 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 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
See Also