- <init>
Constructor using an array of integers as seed. Your array must have a non-zero
length. Only the fir
- next
Returns an integer with bits bits filled with a random number.
- nextBoolean
This generates a coin flip with a probability probability of returning true,
else returning false.pr
- nextByte
For completeness' sake, though it's not in java.util.Random.
- nextDouble
Returns a double in the range from 0.0 to 1.0, possibly inclusive of 0.0 and 1.0
themselves. Thus: E
- nextFloat
Returns a float in the range from 0.0f to 1.0f, possibly inclusive of 0.0f and
1.0f themselves. Thus
- nextGaussian
A bug fix for all JDK code including 1.2. nextGaussian can theoretically ask for
the log of 0 and di
- nextInt
This method is missing from JDK 1.1 and below. JDK 1.2 includes this for us, but
what the heck.
- nextLong
This method is for completness' sake. Returns a long drawn uniformly from 0 to
n-1. Suffice it to sa
- nextShort
For completeness' sake, though it's not in java.util.Random.
- setSeed
Sets the seed of the MersenneTwister using an array of integers. Your array must
have a non-zero len