public class DummyGenerator extends java.lang.Object implements RandomNumber, java.lang.Cloneable
| Constructor and Description |
|---|
DummyGenerator()
Creates a new instance of DummyGenerator
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
double |
draw()
Draws a random number and returns it as U(0,1)
|
long |
drawLong()
Draws a random number and returns it as an integer.
|
double |
getMultiplier()
Returns the value for this RandomNumber needed to scale
a number produced by drawLong to result in U(0,1).
|
long |
getSeed()
Returns the current (not original) seed for this RandomNumber.
|
long[] |
getSeeds()
Gets the current (not original) value of the seeds for this RandomNumber.
|
void |
resetSeed()
Resets seed to last setSeed() value
|
void |
setSeed(long seed)
Set the random number seed for this RandomNumber.
|
void |
setSeeds(long[] seed)
Sets the seeds of this RandomNumber to the given values.
|
public double draw()
RandomNumberdraw in interface RandomNumberpublic long drawLong()
RandomNumberdrawLong in interface RandomNumberpublic long getSeed()
RandomNumbergetSeed in interface RandomNumberpublic long[] getSeeds()
RandomNumbergetSeeds in interface RandomNumberpublic void resetSeed()
resetSeed in interface RandomNumberpublic void setSeed(long seed)
RandomNumbersetSeed in interface RandomNumberseed - The new random number seedpublic void setSeeds(long[] seed)
RandomNumbersetSeeds in interface RandomNumberseed - The new array of seedspublic java.lang.Object clone()
clone in class java.lang.Objectpublic double getMultiplier()
RandomNumbergetMultiplier in interface RandomNumber