Click or drag to resize

RandomBetween Method

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

Namespace: GSF.Security.Cryptography
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public static double Between(
	double startNumber,
	double stopNumber
)
View Source

Parameters

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

Return Value

Double
A Double that is generated between the startNumber and the stopNumber, or an exception.
Exceptions
ExceptionCondition
CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.
See Also