RandomInt32Between Method

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

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static int Int32Between(
	int startNumber,
	int stopNumber
)

Parameters

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

Return Value

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

Exceptions

CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.

See Also