| Modifier and Type | Field and Description |
|---|---|
| private final int[] | arr
Service variable. |
| private int | count
Count through the results in rsl[] |
| private static final int | GLD_RATIO
The golden ratio |
| private static final int | H_SIZE
Half-size of rsl[] and mem[] |
| private int | isaacA
Accumulator |
| private int | isaacB
The last result |
| private int | isaacC
Counter, guarantees cycle is at least 2^40 |
| private int | isaacI
Service variable. |
| private int | isaacJ
Service variable. |
| private int | isaacX
Service variable. |
| private static final int | MASK
For pseudo-random lookup |
| private final int[] | mem
The internal state |
| private final int[] | rsl
The results given to the user |
| private static final long | serialVersionUID
Hides org. |
| private static final int | SIZE
Size of rsl[] and mem[] |
| private static final int | SIZE_L
Log of size of rsl[] and mem[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ISAACRandom(long
Initial seed. seed)Creates a new ISAAC random number generator using a single long seed. |
| public | ISAACRandom(int[]
Initial seed. If seed)null, the seed will be related
to the current time.Creates a new ISAAC random number generator using an int array seed. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| protected int | next(int
number of random bits to produce bits)Implements abstract org. Generate next pseudorandom number. |
| public void | setSeed(int
the seed value seed)Implements abstract org. Implements org. Sets the seed of the underlying random number generator using an
|
| public void | setSeed(long
the seed value seed)Implements abstract org. Implements org. Sets the seed of the underlying random number generator using a
|
| public void | setSeed(int[]
the seed value seed)Implements abstract org. Implements org. Sets the seed of the underlying random number generator using an
|
| private void | |
| private void |
| arr | back to summary |
|---|---|
| private final int[] arr Service variable. | |
| count | back to summary |
|---|---|
| private int count Count through the results in rsl[] | |
| GLD_RATIO | back to summary |
|---|---|
| private static final int GLD_RATIO The golden ratio | |
| H_SIZE | back to summary |
|---|---|
| private static final int H_SIZE Half-size of rsl[] and mem[] | |
| isaacA | back to summary |
|---|---|
| private int isaacA Accumulator | |
| isaacB | back to summary |
|---|---|
| private int isaacB The last result | |
| isaacC | back to summary |
|---|---|
| private int isaacC Counter, guarantees cycle is at least 2^40 | |
| isaacI | back to summary |
|---|---|
| private int isaacI Service variable. | |
| isaacJ | back to summary |
|---|---|
| private int isaacJ Service variable. | |
| isaacX | back to summary |
|---|---|
| private int isaacX Service variable. | |
| MASK | back to summary |
|---|---|
| private static final int MASK For pseudo-random lookup | |
| mem | back to summary |
|---|---|
| private final int[] mem The internal state | |
| rsl | back to summary |
|---|---|
| private final int[] rsl The results given to the user | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier | |
| SIZE | back to summary |
|---|---|
| private static final int SIZE Size of rsl[] and mem[] | |
| SIZE_L | back to summary |
|---|---|
| private static final int SIZE_L Log of size of rsl[] and mem[] | |
| ISAACRandom | back to summary |
|---|---|
| public ISAACRandom() Creates a new ISAAC random number generator.
| |
| ISAACRandom | back to summary |
|---|---|
| public ISAACRandom(long seed) Creates a new ISAAC random number generator using a single long seed.
| |
| ISAACRandom | back to summary |
|---|---|
| public ISAACRandom(int[] seed) Creates a new ISAAC random number generator using an int array seed.
| |
| initState | back to summary |
|---|---|
| private void initState() Initialize, or reinitialize, this instance of rand. | |
| isaac | back to summary |
|---|---|
| private void isaac() Generate 256 results | |
| isaac2 | back to summary |
|---|---|
| private void isaac2() Intermediate internal loop. | |
| isaac3 | back to summary |
|---|---|
| private void isaac3() Lowest level internal loop. | |
| next | back to summary |
|---|---|
| protected int next(int bits) Implements abstract org. Doc from org. Generate next pseudorandom number. This method is the core generation algorithm. It is used by all the
public generation methods for the various primitive types
| |
| setSeed | back to summary |
|---|---|
| public void setSeed(int seed) Implements abstract org. Implements org. Doc from org. Sets the seed of the underlying random number generator using an
Sequences of values generated starting with the same seeds should be identical.
| |
| setSeed | back to summary |
|---|---|
| public void setSeed(long seed) Implements abstract org. Implements org. Doc from org. Sets the seed of the underlying random number generator using a
Sequences of values generated starting with the same seeds should be identical.
| |
| setSeed | back to summary |
|---|---|
| public void setSeed(int[] seed) Implements abstract org. Implements org. Doc from org. Sets the seed of the underlying random number generator using an
Sequences of values generated starting with the same seeds should be identical.
| |
| setState | back to summary |
|---|---|
| private void setState(int start) Set the state by copying the internal arrays.
| |
| shuffle | back to summary |
|---|---|
| private void shuffle() Shuffle array. | |