Click or drag to resize

RandomInt24Between(UInt24, UInt24) Method

Generates a cryptographically strong unsigned 24-bit random integer between specified values. i.e. [startNumber-stopNumber)

Namespace: GSF.Security.Cryptography
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static UInt24 Int24Between(
	UInt24 startNumber,
	UInt24 stopNumber
)
View Source

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
ExceptionCondition
CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.
See Also