RandomUInt64Between Method

Generates a cryptographically strong unsigned 64-bit random integer between specified values.

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.137 -- Release Build+84492f84208b356bfb930d6c506a4bce06d2449a
public static ulong UInt64Between(
	ulong startNumber,
	ulong stopNumber
)

Parameters

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

UInt64
A UInt64 that is generated between the startNumber and the stopNumber.

Exceptions

CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.

See Also