Click or drag to resize

Random Class

Generates cryptographically strong random numbers.
Inheritance Hierarchy
SystemObject
  GSF.Security.CryptographyRandom

Namespace: GSF.Security.Cryptography
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static class Random
View Source

The Random type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberBoolean Generates a cryptographically strong random boolean (i.e., a coin toss).
Public propertyStatic memberByte Generates a cryptographically strong 8-bit random integer.
Public propertyStatic memberDecimal Generates a semi cryptographically strong random decimal between zero and one. i.e. [0-1)
Public propertyStatic memberInt16 Generates a cryptographically strong 16-bit random integer.
Public propertyStatic memberInt24 Generates a cryptographically strong 24-bit random integer.
Public propertyStatic memberInt32 Generates a cryptographically strong 32-bit random integer.
Public propertyStatic memberInt64 Generates a cryptographically strong 64-bit random integer.
Public propertyStatic memberNumber Generates a semi cryptographically strong double-precision floating-point random number between zero and one. i.e. [0-1)
Public propertyStatic memberUInt16 Generates a cryptographically strong unsigned 16-bit random integer.
Public propertyStatic memberUInt24 Generates a cryptographically strong unsigned 24-bit random integer.
Public propertyStatic memberUInt32 Generates a cryptographically strong unsigned 32-bit random integer.
Public propertyStatic memberUInt64 Generates a cryptographically strong unsigned 64-bit random integer.
Top
Methods
 NameDescription
Public methodStatic memberBetween Generates a semi cryptographically strong random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberByteBetween Generates a cryptographically strong 8-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberGetBytes Fills an array of bytes with a cryptographically strong sequence of random values.
Public methodStatic memberInt16Between Generates a cryptographically strong 16-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberInt24Between(Int24, Int24) Generates a cryptographically strong 24-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberInt24Between(UInt24, UInt24) Generates a cryptographically strong unsigned 24-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberInt32Between Generates a cryptographically strong 32-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberInt64Between Generates a cryptographically strong 64-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberUInt16Between Generates a cryptographically strong unsigned 16-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberUInt32Between Generates a cryptographically strong unsigned 32-bit random integer between specified values. i.e. [startNumber-stopNumber)
Public methodStatic memberUInt64Between Generates a cryptographically strong unsigned 64-bit random integer between specified values. i.e. [startNumber-stopNumber)
Top
See Also