Méthode | Description | |
---|---|---|
Bool ( this random ) : bool |
Generate a uniformly distributed bool in the range [false, true].
|
|
Byte ( this random ) : Byte |
Generate a uniformly distributed byte in the range [0, 2^8).
|
|
Double ( this random ) : double |
Generate a uniformly distributed double in the range (0, 1]. Zero is explicitly excluded, to allow generated values to be used in statistical calculations that require non-zero values (e.g. uses of the 'log' function).
|
|
Float ( this random ) : float |
Generate a uniformly distributed float in the range (0, 1]. Zero is explicitly excluded, to allow generated values to be used in statistical calculations that require non-zero values (e.g. uses of the 'log' function).
|
|
Int16 ( this random ) : |
Generate a uniformly distributed short in the range [-2^8, 2^8).
|
|
Int32 ( this random ) : |
Generate a uniformly distributed int in the range [-2^16, 2^16).
|
|
Int64 ( this random ) : System.Int64 |
Generate a uniformly distributed long in the range [-2^32, 2^32).
|
|
SByte ( this random ) : SByte |
Generate a uniformly distributed sbyte in the range [-2^4, 2^4).
|
|
UInt16 ( this random ) : |
Generate a uniformly distributed uint in the range [0, 2^16).
|
|
UInt64 ( this random ) : System.UInt64 |
Generate a uniformly distributed ulong in the range [0, 2^64).
|
Méthode | Description | |
---|---|---|
ToDouble ( uint v, uint u ) : double | ||
ToFloat ( uint i ) : float |
public static Double ( this random ) : double | ||
random | this | |
Résultat | double |
public static Float ( this random ) : float | ||
random | this | |
Résultat | float |
public static Int16 ( this random ) : |
||
random | this | |
Résultat |
public static Int32 ( this random ) : |
||
random | this | |
Résultat |
public static Int64 ( this random ) : System.Int64 | ||
random | this | |
Résultat | System.Int64 |
public static SByte ( this random ) : SByte | ||
random | this | |
Résultat | SByte |
public static UInt16 ( this random ) : |
||
random | this | |
Résultat |
public static UInt64 ( this random ) : System.UInt64 | ||
random | this | |
Résultat | System.UInt64 |