|
RandomUInt64Between Method
|
Generates a cryptographically strong unsigned 64-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 ulong UInt64Between(
ulong startNumber,
ulong stopNumber
)
Public Shared Function UInt64Between (
startNumber As ULong,
stopNumber As ULong
) As ULong
public:
static unsigned long long UInt64Between(
unsigned long long startNumber,
unsigned long long stopNumber
)
static member UInt64Between :
startNumber : uint64 *
stopNumber : uint64 -> uint64
GSF.Security.Cryptography.Random.UInt64Between = function(startNumber, stopNumber);
View SourceParameters
- startNumber UInt64
- A UInt64 that is the low end of our range.
- stopNumber UInt64
- A UInt64 that is the high end of our range.
Return Value
UInt64A
UInt64 that is generated between the
startNumber and the
stopNumber.
ExceptionsException | Condition |
---|
CryptographicException | The cryptographic service provider (CSP) cannot be acquired. |
See Also