| Modifier and Type | Field and Description |
|---|---|
| private double | nextGaussian
Next gaussian. |
| private static final long | serialVersionUID
Serializable version identifier |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected abstract int | Returns: random bits generatednumber of random bits to produce bits)Generate next pseudorandom number. |
| public boolean | nextBoolean()
Implements org. Returns the next pseudorandom, uniformly distributed
|
| public void | nextBytes(byte[]
Array in which to put the generated bytes. Cannot be bytes)null.Implements org. Generates random bytes and places them into a user-supplied array. |
| public void | nextBytes(byte[]
Array in which to put the generated bytes. Cannot be bytes, int null.Index at which to start inserting the generated bytes. start, int Number of bytes to insert. len)Generates random bytes and places them into a user-supplied array. |
| private void | nextBytesFill(byte[]
Array in which to put the generated bytes. Cannot be bytes, int null.Index at which to start inserting the generated bytes. start, int Number of bytes to insert. len)Generates random bytes and places them into a user-supplied array. |
| public double | nextDouble()
Implements org. Returns the next pseudorandom, uniformly distributed
|
| public float | nextFloat()
Implements org. Returns the next pseudorandom, uniformly distributed |
| public double | nextGaussian()
Implements org. Returns the next pseudorandom, Gaussian ("normally") distributed
|
| public int | nextInt()
Implements org. Returns the next pseudorandom, uniformly distributed |
| public int | nextInt(int
the bound on the random number to be returned. Must be
positive. n)Implements org. Returns a pseudorandom, uniformly distributed |
| public long | nextLong()
Implements org. Returns the next pseudorandom, uniformly distributed |
| public long | Returns: a pseudorandom, uniformly distributedlong
value between 0 (inclusive) and n (exclusive).the bound on the random number to be returned. Must be
positive. n)Returns a pseudorandom, uniformly distributed |
| public abstract void | setSeed(int
the seed value seed)Redeclares org. Sets the seed of the underlying random number generator using an
|
| public abstract void | setSeed(int[]
the seed value seed)Redeclares org. Sets the seed of the underlying random number generator using an
|
| public abstract void | setSeed(long
the seed value seed)Redeclares org. Sets the seed of the underlying random number generator using a
|
| nextGaussian | back to summary |
|---|---|
| private double nextGaussian Next gaussian. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier | |
| BitsStreamGenerator | back to summary |
|---|---|
| public BitsStreamGenerator() Creates a new random number generator. | |
| clear | back to summary |
|---|---|
| public void clear() Clears the cache used by the default implementation of
| |
| next | back to summary |
|---|---|
| protected abstract int next(int bits) 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
| |
| nextBoolean | back to summary |
|---|---|
| public boolean nextBoolean() Implements org. Doc from org. Returns the next pseudorandom, uniformly distributed
| |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes) Implements org. Generates random bytes and places them into a user-supplied array. The array is filled with bytes extracted from random integers. This implies that the number of random bytes generated may be larger than the length of the byte array.
| |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes, int start, int len) Generates random bytes and places them into a user-supplied array. The array is filled with bytes extracted from random integers. This implies that the number of random bytes generated may be larger than the length of the byte array.
| |
| nextBytesFill | back to summary |
|---|---|
| private void nextBytesFill(byte[] bytes, int start, int len) Generates random bytes and places them into a user-supplied array. The array is filled with bytes extracted from random integers. This implies that the number of random bytes generated may be larger than the length of the byte array.
| |
| nextDouble | back to summary |
|---|---|
| public double nextDouble() Implements org. Doc from org. Returns the next pseudorandom, uniformly distributed
| |
| nextFloat | back to summary |
|---|---|
| public float nextFloat() Implements org. Doc from org. Returns the next pseudorandom, uniformly distributed
| |
| nextGaussian | back to summary |
|---|---|
| public double nextGaussian() Implements org. Doc from org. Returns the next pseudorandom, Gaussian ("normally") distributed
| |
| nextInt | back to summary |
|---|---|
| public int nextInt() Implements org. Doc from org. Returns the next pseudorandom, uniformly distributed
| |
| nextInt | back to summary |
|---|---|
| public int nextInt(int n) throws IllegalArgumentException Implements org. Doc from org. Returns a pseudorandom, uniformly distributed This default implementation is copied from Apache Harmony java.util.Random (r929253). Implementation notes:
| |
| nextLong | back to summary |
|---|---|
| public long nextLong() Implements org. Doc from org. Returns the next pseudorandom, uniformly distributed
| |
| nextLong | back to summary |
|---|---|
| public long nextLong(long n) throws IllegalArgumentException Returns a pseudorandom, uniformly distributed
| |
| setSeed | back to summary |
|---|---|
| public abstract void setSeed(int seed) Redeclares 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 abstract void setSeed(int[] seed) Redeclares 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 abstract void setSeed(long seed) Redeclares 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.
| |