public class Ranecu extends RandomSeedable implements java.io.Serializable
Source code is available.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFSEED1
default iseed1 = 12345
|
static int |
DEFSEED2
default iseed2 = 67890
|
(package private) int |
iseed1 |
(package private) int |
iseed2 |
BMoutput| Constructor and Description |
|---|
Ranecu()
Initialize
|
Ranecu(java.util.Date d) |
Ranecu(int s1,
int s2)
Initialize
|
Ranecu(long l) |
| Modifier and Type | Method and Description |
|---|---|
long |
getSeed() |
double |
raw()
The abstract method that must be defined to make a working RandomElement.
|
void |
raw(double[] d,
int n)
This is an inline version that returns an array of doubles for speed.
|
ClockSeed, ClockSeedint iseed1
int iseed2
public static int DEFSEED1
public static int DEFSEED2
public Ranecu()
public Ranecu(int s1,
int s2)
Ranecu(s1*(long) Integer.MAX_VALUE)+s2)s1 - seed integer 1 (MSW)s2 - seed integer 2 (LSW)public Ranecu(long l)
public Ranecu(java.util.Date d)
public final double raw()
RandomElementRandomJava for an example of how to do this.raw in class RandomElementRandomElement.raw()public final void raw(double[] d,
int n)
raw in class RandomElementd - array to be filled with doublesn - number of doubles to generatepublic long getSeed()