C E M N R S W

C

clearGaussian() - Method in class ec.util.MersenneTwister
Clears the internal gaussian variable from the RNG.
clearGaussian() - Method in class ec.util.MersenneTwisterFast
Clears the internal gaussian variable from the RNG.
clone() - Method in class ec.util.MersenneTwister
 
clone() - Method in class ec.util.MersenneTwisterFast
 

E

ec.util - package ec.util
 

M

main(String[]) - Static method in class ec.util.MersenneTwister
Tests the code.
main(String[]) - Static method in class ec.util.MersenneTwisterFast
Tests the code.
MersenneTwister - Class in ec.util
MersenneTwister and MersenneTwisterFast
MersenneTwister() - Constructor for class ec.util.MersenneTwister
Constructor using the default seed.
MersenneTwister(long) - Constructor for class ec.util.MersenneTwister
Constructor using a given seed.
MersenneTwister(int[]) - Constructor for class ec.util.MersenneTwister
Constructor using an array of integers as seed.
MersenneTwisterFast - Class in ec.util
MersenneTwister and MersenneTwisterFast
MersenneTwisterFast() - Constructor for class ec.util.MersenneTwisterFast
Constructor using the default seed.
MersenneTwisterFast(long) - Constructor for class ec.util.MersenneTwisterFast
Constructor using a given seed.
MersenneTwisterFast(int[]) - Constructor for class ec.util.MersenneTwisterFast
Constructor using an array of integers as seed.

N

next(int) - Method in class ec.util.MersenneTwister
Returns an integer with bits bits filled with a random number.
nextBoolean() - Method in class ec.util.MersenneTwister
This method is missing from jdk 1.0.x and below.
nextBoolean(float) - Method in class ec.util.MersenneTwister
This generates a coin flip with a probability probability of returning true, else returning false.
nextBoolean(double) - Method in class ec.util.MersenneTwister
This generates a coin flip with a probability probability of returning true, else returning false.
nextBoolean() - Method in class ec.util.MersenneTwisterFast
 
nextBoolean(float) - Method in class ec.util.MersenneTwisterFast
This generates a coin flip with a probability probability of returning true, else returning false.
nextBoolean(double) - Method in class ec.util.MersenneTwisterFast
This generates a coin flip with a probability probability of returning true, else returning false.
nextByte() - Method in class ec.util.MersenneTwister
For completeness' sake, though it's not in java.util.Random.
nextByte() - Method in class ec.util.MersenneTwisterFast
 
nextBytes(byte[]) - Method in class ec.util.MersenneTwister
A bug fix for all versions of the JDK.
nextBytes(byte[]) - Method in class ec.util.MersenneTwisterFast
 
nextChar() - Method in class ec.util.MersenneTwister
For completeness' sake, though it's not in java.util.Random.
nextChar() - Method in class ec.util.MersenneTwisterFast
 
nextDouble() - Method in class ec.util.MersenneTwister
A bug fix for versions of JDK 1.1 and below.
nextDouble(boolean, boolean) - Method in class ec.util.MersenneTwister
Returns a double in the range from 0.0 to 1.0, possibly inclusive of 0.0 and 1.0 themselves.
nextDouble() - Method in class ec.util.MersenneTwisterFast
Returns a random double in the half-open range from [0.0,1.0).
nextDouble(boolean, boolean) - Method in class ec.util.MersenneTwisterFast
Returns a double in the range from 0.0 to 1.0, possibly inclusive of 0.0 and 1.0 themselves.
nextFloat() - Method in class ec.util.MersenneTwister
A bug fix for versions of JDK 1.1 and below.
nextFloat(boolean, boolean) - Method in class ec.util.MersenneTwister
Returns a float in the range from 0.0f to 1.0f, possibly inclusive of 0.0f and 1.0f themselves.
nextFloat() - Method in class ec.util.MersenneTwisterFast
Returns a random float in the half-open range from [0.0f,1.0f).
nextFloat(boolean, boolean) - Method in class ec.util.MersenneTwisterFast
Returns a float in the range from 0.0f to 1.0f, possibly inclusive of 0.0f and 1.0f themselves.
nextGaussian() - Method in class ec.util.MersenneTwister
A bug fix for all JDK code including 1.2.
nextGaussian() - Method in class ec.util.MersenneTwisterFast
 
nextInt(int) - Method in class ec.util.MersenneTwister
This method is missing from JDK 1.1 and below.
nextInt() - Method in class ec.util.MersenneTwisterFast
 
nextInt(int) - Method in class ec.util.MersenneTwisterFast
Returns an integer drawn uniformly from 0 to n-1.
nextLong(long) - Method in class ec.util.MersenneTwister
This method is for completness' sake.
nextLong() - Method in class ec.util.MersenneTwisterFast
Returns a long drawn uniformly from 0 to n-1.
nextLong(long) - Method in class ec.util.MersenneTwisterFast
Returns a long drawn uniformly from 0 to n-1.
nextShort() - Method in class ec.util.MersenneTwister
For completeness' sake, though it's not in java.util.Random.
nextShort() - Method in class ec.util.MersenneTwisterFast
 

R

readState(DataInputStream) - Method in class ec.util.MersenneTwister
Reads the entire state of the MersenneTwister RNG from the stream
readState(DataInputStream) - Method in class ec.util.MersenneTwisterFast
Reads the entire state of the MersenneTwister RNG from the stream

S

setSeed(long) - Method in class ec.util.MersenneTwister
Initalize the pseudo random number generator.
setSeed(int[]) - Method in class ec.util.MersenneTwister
Sets the seed of the MersenneTwister using an array of integers.
setSeed(long) - Method in class ec.util.MersenneTwisterFast
Initalize the pseudo random number generator.
setSeed(int[]) - Method in class ec.util.MersenneTwisterFast
Sets the seed of the MersenneTwister using an array of integers.
stateEquals(MersenneTwister) - Method in class ec.util.MersenneTwister
Returns true if the MersenneTwister's current internal state is equal to another MersenneTwister.
stateEquals(MersenneTwisterFast) - Method in class ec.util.MersenneTwisterFast
Returns true if the MersenneTwisterFast's current internal state is equal to another MersenneTwisterFast.

W

writeState(DataOutputStream) - Method in class ec.util.MersenneTwister
Writes the entire state of the MersenneTwister RNG to the stream
writeState(DataOutputStream) - Method in class ec.util.MersenneTwisterFast
Writes the entire state of the MersenneTwister RNG to the stream

C E M N R S W