Метод | Описание | |
---|---|---|
Choose ( int n ) : int |
Initializes a new instance of the Chooser class. Gets or sets the random seed of the chooser. The value of this property is ignored. The property is needed for backward compatibility. Returns a nonnegative random number less than the specified maximum.
|
|
ChooseBV32 ( ) : uint |
Choose a random uint.
|
|
ChooseBV64 ( ) : ulong |
Choose a random ulong.
|
|
ChooseDouble ( ) : double |
Returns a random number between 0.0 and 1.0.
|
|
ChooseTrueOrFalse ( ) : bool |
Choose true or false randomly.
|
|
Chooser ( ) : System |
Initializes a new instance of the Chooser class.
|
Метод | Описание | |
---|---|---|
GetMostSignificantBit ( uint n ) : uint |
Calculates the value of the most significant bit in a positive integer.
|
public Choose ( int n ) : int | ||
n | int | The exclusive upper bound of the random number to be generated. n must be /// greater than or equal to zero. |
Результат | int |