public class Ranecu extends RandomSeedable implements Serializable
Source code is available.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFSEED1
default iseed1 = 12345
|
static int |
DEFSEED2
default iseed2 = 67890
|
| Constructor and Description |
|---|
Ranecu()
Initialize RANECU with the default seeds from
James.
|
Ranecu(Date d) |
Ranecu(int s1,
int s2)
Initialize RANECU with two specified integer seeds.
|
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, ClockSeedpublic 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(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()
Copyright © 2015. All rights reserved.