메소드 | 설명 | |
---|---|---|
GetInstance ( ) : Random |
Gets the instance. If it does not exist yet, it will be created.
|
|
InitInstance ( int seed ) : void |
Initializes the instance with a given random seed
|
|
NextExp ( double lambda ) : double |
Nexts the exp
|
|
NextNormal ( ) : double |
Get the next number from the standard normal distribution
|
|
NextNormal ( double mean, double stdev ) : double |
Draw the next number from a normal distribution
|
|
Random ( ) : System |
Default constructor
|
|
Random ( int seed ) : System |
Creates a Random object initialized with a seed
|
public static InitInstance ( int seed ) : void | ||
seed | int | a seed value |
리턴 | void |
public NextNormal ( double mean, double stdev ) : double | ||
mean | double | mean of the Gaussian |
stdev | double | standard deviation of the Gaussian |
리턴 | double |
public Random ( int seed ) : System | ||
seed | int | An integer for initializing the random number generator |
리턴 | System |