RandomInt24ValueBetween Method

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

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.170 -- Release Build+ca3065dc8f8b84c59ee38bd3367c3e71f3818071
public static Int24 ValueBetween(
	Int24 startNumber,
	Int24 stopNumber
)

Parameters

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

Return Value

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

Exceptions

CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.

See Also