Метод | Описание | |
---|---|---|
Between ( double startNumber, double stopNumber ) : double |
Generates a semi cryptographically strong random integer between specified values. i.e. [startNumber-stopNumber)
|
|
ByteBetween ( byte startNumber, byte stopNumber ) : byte |
Generates a cryptographically strong 8-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
GetBytes ( byte buffer ) : void |
Fills an array of bytes with a cryptographically strong sequence of random values. The length of the byte array determines how many cryptographically strong random bytes are produced. This method is thread safe. |
|
Int16Between ( short startNumber, short stopNumber ) : short |
Generates a cryptographically strong 16-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
Int24Between ( Int24 startNumber, Int24 stopNumber ) : Int24 |
Generates a cryptographically strong 24-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
Int24Between ( System.UInt24 startNumber, System.UInt24 stopNumber ) : System.UInt24 |
Generates a cryptographically strong unsigned 24-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
Int32Between ( int startNumber, int stopNumber ) : int |
Generates a cryptographically strong 32-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
Int64Between ( long startNumber, long stopNumber ) : long |
Generates a cryptographically strong 64-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
UInt16Between ( ushort startNumber, ushort stopNumber ) : ushort |
Generates a cryptographically strong unsigned 16-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
UInt32Between ( uint startNumber, uint stopNumber ) : uint |
Generates a cryptographically strong unsigned 32-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
|
UInt64Between ( ulong startNumber, ulong stopNumber ) : ulong |
Generates a cryptographically strong unsigned 64-bit random integer between specified values. i.e. [startNumber-stopNumber)
|
Метод | Описание | |
---|---|---|
GetRandomNumberLessThan ( int maxValue ) : int |
Returns a cryptographically strong number that is less the the supplied value A number less than a negative number rolls down to int.MinValue, then to int.MaxValue if 0 is provided, 0 is returned |
|
GetRandomNumberLessThan ( long maxValue ) : long |
Returns a cryptographically strong number that is less the the supplied value A number less than a negative number rolls down to long.MinValue, then to long.MaxValue if 0 is provided, 0 is returned |
|
GetRandomNumberLessThan ( uint maxValue ) : uint |
Returns a cryptographically strong number that is less than the the supplied value if 0 is provided, 0 is returned |
|
GetRandomNumberLessThan ( ulong maxValue ) : ulong |
Returns a cryptographically strong number that is less than the the supplied value if 0 is provided, 0 is returned |
public static Between ( double startNumber, double stopNumber ) : double | ||
startNumber | double | A |
stopNumber | double | A |
Результат | double |
public static ByteBetween ( byte startNumber, byte stopNumber ) : byte | ||
startNumber | byte | A |
stopNumber | byte | A |
Результат | byte |
public static GetBytes ( byte buffer ) : void | ||
buffer | byte | The array to fill with a cryptographically strong sequence of random values. |
Результат | void |
public static Int16Between ( short startNumber, short stopNumber ) : short | ||
startNumber | short | A |
stopNumber | short | A |
Результат | short |
public static Int24Between ( Int24 startNumber, Int24 stopNumber ) : Int24 | ||
startNumber | Int24 | A |
stopNumber | Int24 | A |
Результат | Int24 |
public static Int24Between ( System.UInt24 startNumber, System.UInt24 stopNumber ) : System.UInt24 | ||
startNumber | System.UInt24 | A |
stopNumber | System.UInt24 | A |
Результат | System.UInt24 |
public static Int32Between ( int startNumber, int stopNumber ) : int | ||
startNumber | int | A |
stopNumber | int | A |
Результат | int |
public static Int64Between ( long startNumber, long stopNumber ) : long | ||
startNumber | long | A |
stopNumber | long | A |
Результат | long |
public static UInt16Between ( ushort startNumber, ushort stopNumber ) : ushort | ||
startNumber | ushort | A |
stopNumber | ushort | A |
Результат | ushort |
public static UInt32Between ( uint startNumber, uint stopNumber ) : uint | ||
startNumber | uint | A |
stopNumber | uint | A |
Результат | uint |
public static UInt64Between ( ulong startNumber, ulong stopNumber ) : ulong | ||
startNumber | ulong | A |
stopNumber | ulong | A |
Результат | ulong |