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