|
WDMSim | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Random
wdmsim.util.Distribution
public class Distribution
Extends Java Random Class in order to provide good random number sequences.
Constructor Summary | |
---|---|
Distribution()
|
|
Distribution(int seq_num,
int seed_num)
Distribution setup interface. |
|
Distribution(long seed)
Creates a new Distribution object, which is nothing more than a random number generator. |
Method Summary | |
---|---|
double |
nextExponential(double b)
Exponential distribution. |
Methods inherited from class java.util.Random |
---|
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Distribution()
public Distribution(long seed)
seed
- initial value of the internal state of the pseudo-random number generatorpublic Distribution(int seq_num, int seed_num)
seq_num
- 1..4 sequence numberseed_num
- 1..25 seed numberMethod Detail |
---|
public double nextExponential(double b)
b
-
|
WDMSim | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |