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