|
RandomUInt32Between Method
|
Generates a cryptographically strong unsigned 32-bit random integer between specified values. i.e. [startNumber-stopNumber)
Namespace: GSF.Security.CryptographyAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic static uint UInt32Between(
uint startNumber,
uint stopNumber
)
Public Shared Function UInt32Between (
startNumber As UInteger,
stopNumber As UInteger
) As UInteger
public:
static unsigned int UInt32Between(
unsigned int startNumber,
unsigned int stopNumber
)
static member UInt32Between :
startNumber : uint32 *
stopNumber : uint32 -> uint32
GSF.Security.Cryptography.Random.UInt32Between = function(startNumber, stopNumber);
View SourceParameters
- 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
UInt32A
UInt32 that is generated between the
startNumber and the
stopNumber.
ExceptionsException | Condition |
---|
CryptographicException | The cryptographic service provider (CSP) cannot be acquired. |
See Also