RandomByteBetween Method

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

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.156 -- Release Build+59006cef9614396d8b79971beebc1091829bcfe4
public static byte ByteBetween(
	byte startNumber,
	byte stopNumber
)

Parameters

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

Return Value

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

Exceptions

CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.

See Also