RandomUInt24ValueBetween Method

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

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.172 -- Release Build+e1d54149784e85c054df1142e76e10e30c46c26f
public static UInt24 ValueBetween(
	UInt24 startNumber,
	UInt24 stopNumber
)

Parameters

startNumber  UInt24
A UInt24 that is the low end of our range.
stopNumber  UInt24
A UInt24 that is the high end of our range.

Return Value

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

Exceptions

CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.

See Also