Метод | Описание | |
---|---|---|
Random ( ) : System |
Initializes a sequence of uniformly distributed quasi random numbers with a seed based on the system clock.
|
|
Random ( double left, double right ) : System |
Initializes a sequence of uniformly distributed quasi random numbers on a given half-open interval [left,right) with a seed based on the system clock.
|
|
Random ( int seed ) : System |
Initializes a sequence of uniformly distributed quasi random numbers with a given seed.
|
|
Random ( int seed, double left, double right ) : System |
Initializes a sequence of uniformly distributed quasi random numbers with a given seed on a given half-open interval [left,right).
|
|
nextDouble ( ) : double |
Returns the next random number in the sequence.
|
|
nextDoubles ( double x ) : void |
Returns the next N random numbers in the sequence, as a vector.
|
Метод | Описание | |
---|---|---|
initialize ( int seed ) : void |
public Random ( double left, double right ) : System | ||
left | double | |
right | double | |
Результат | System |
public Random ( int seed, double left, double right ) : System | ||
seed | int | |
left | double | |
right | double | |
Результат | System |