RandomUInt32Between Method

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

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.138 -- Release Build+dacff88cce10d287c7434d5aac59c76948c712b1
public static uint UInt32Between(
	uint startNumber,
	uint stopNumber
)

Parameters

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

Return Value

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

Exceptions

CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.

See Also