|
RandomInt16Between Method
|
Generates a cryptographically strong 16-bit random integer between specified values. i.e. [startNumber-stopNumber)
Namespace: GSF.Security.CryptographyAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic static short Int16Between(
short startNumber,
short stopNumber
)
Public Shared Function Int16Between (
startNumber As Short,
stopNumber As Short
) As Short
public:
static short Int16Between(
short startNumber,
short stopNumber
)
static member Int16Between :
startNumber : int16 *
stopNumber : int16 -> int16
GSF.Security.Cryptography.Random.Int16Between = function(startNumber, stopNumber);
View SourceParameters
- startNumber Int16
- A Int16 that is the low end of our range.
- stopNumber Int16
- A Int16 that is the high end of our range.
Return Value
Int16A
Int16 that is generated between the
startNumber and the
stopNumber.
ExceptionsException | Condition |
---|
CryptographicException | The cryptographic service provider (CSP) cannot be acquired. |
See Also