This class is mostly for library writers creating specific
implementations of the interface RandomGenerator. As an
internal package it is not intended for general use.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | RandomSupport.
This class provides much of the implementation of the
|
| public abstract static class | RandomSupport.
This class overrides the stream-producing methods (such as
|
| public abstract static class | RandomSupport.
This class provides much of the implementation of the
|
| public abstract static class | RandomSupport.
This class provides much of the implementation of the
|
| pack-priv static class | RandomSupport.
Implementation support for modified-ziggurat implementation of nextExponential() This Java class was generated automatically by a program `create_ziggurat_tables.c`. |
| public static class | RandomSupport.
Spliterator for double streams. |
| public static class | RandomSupport.
Spliterators for int streams. |
| public static class | RandomSupport.
Spliterator for long streams. |
| public abstract static class | RandomSupport.
Base class for making Spliterator classes for streams of randomly chosen values. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final int | GOLDEN_RATIO_32
The first 32 bits of the golden ratio (1+sqrt(5))/2, forced to be odd. |
| public static final long | GOLDEN_RATIO_64
The first 64 bits of the golden ratio (1+sqrt(5))/2, forced to be odd. |
| private static final double | MAX_EXPONENTIAL
Largest value that |
| public static final int | SILVER_RATIO_32
The first 32 bits of the silver ratio 1+sqrt(2), forced to be odd. |
| public static final long | SILVER_RATIO_64
The first 64 bits of the silver ratio 1+sqrt(2), forced to be odd. |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static double | Returns: a pseudorandomly chosendouble value,
which will be between origin (inclusive) and
bound exclusive unless origin
is greater than or equal to bound,
in which case it will be between 0.0 (inclusive)
and 1.0 (exclusive)a random number generator to be used as a
source of pseudorandom rng, double double valuesthe least value that can be produced,
unless greater than or equal to origin, double bound; must be finitethe upper bound (exclusive), unless bound)origin
is greater than or equal to bound; must be finiteThis is the form of |
| public static double | Returns: a pseudorandomly chosendouble value
between zero (inclusive) and bound (exclusive)a random number generator to be used as a
source of pseudorandom rng, double double valuesthe upper bound (exclusive); must be finite and
greater than zero bound)This is the form of |
| public static float | Returns: a pseudorandomly chosenfloat value,
which will be between origin (inclusive) and
bound exclusive unless origin
is greater than or equal to bound,
in which case it will be between 0.0 (inclusive)
and 1.0 (exclusive)a random number generator to be used as a
source of pseudorandom rng, float float valuesthe least value that can be produced,
unless greater than or equal to origin, float bound; must be finitethe upper bound (exclusive), unless bound)origin
is greater than or equal to bound; must be finiteThis is the form of |
| public static float | Returns: a pseudorandomly chosenfloat value
between zero (inclusive) and bound (exclusive)a random number generator to be used as a
source of pseudorandom rng, float float valuesthe upper bound (exclusive); must be finite and
greater than zero bound)This is the form of |
| public static int | Returns: a pseudorandomly chosenint value,
which will be between origin (inclusive) and
bound exclusive unless origin
is greater than or equal to bounda random number generator to be used as a
source of pseudorandom rng, int int valuesthe least value that can be produced,
unless greater than or equal to origin, int boundthe upper bound (exclusive), unless bound)origin
is greater than or equal to boundThis is the form of |
| public static int | Returns: a pseudorandomly chosenlong valuea random number generator to be used as a
source of pseudorandom rng, int long valuesthe upper bound (exclusive); must be greater than zero bound)This is the form of |
| public static long | Returns: a pseudorandomly chosenlong value,
which will be between origin (inclusive) and
bound exclusive unless origin
is greater than or equal to bounda random number generator to be used as a
source of pseudorandom rng, long long valuesthe least value that can be produced,
unless greater than or equal to origin, long boundthe upper bound (exclusive), unless bound)origin
is greater than or equal to boundThis is the form of |
| public static long | Returns: a pseudorandomly chosenlong valuea random number generator to be used as a
source of pseudorandom rng, long long valuesthe upper bound (exclusive); must be greater than zero bound)This is the form of |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | checkRange(float
the least value (inclusive) in the range origin, float the upper bound (exclusive) of the range bound)Checks a |
| public static void | checkRange(double
the least value (inclusive) in the range origin, double the upper bound (exclusive) of the range bound)Checks a |
| public static void | checkRange(int
the least value that can be returned origin, int the upper bound (exclusive) for the returned value bound)Checks an |
| public static void | checkRange(long
the least value that can be returned origin, long the upper bound (exclusive) for the returned value bound)Checks a |
| public static void | checkStreamSize(long
the proposed stream size streamSize)Check a |
| public static double | Returns: a nonnegativedouble value chosen pseudorandomly
from an exponential distribution whose mean is 1an instance of rng)RandomGenerator, used to generate uniformly
pseudorandomly chosen long valuesImplementation support for the |
| public static double | Returns: a nonnegativedouble value chosen pseudorandomly
from an exponential distribution whose mean is 1an instance of rng, double maxValue)RandomGenerator, used to generate uniformly
pseudorandomly chosen long valuesGenerates a pseudorandom value |
| public static double | Returns: a nonnegativedouble value chosen pseudorandomly
from a Gaussian (normal) distribution whose mean is 0 and whose
standard deviation is 1.an instance of rng)RandomGenerator, used to generate uniformly
pseudorandomly chosen long valuesImplementation support for the |
| public static int[] | Returns: an array of lengthn containing int seed valuesan array of seed, int byte valuesthe length of the result array (should be nonnegative) n, int the number of trailing result elements that are required
to be not all zero (should be nonnegative but not larger
than z)n)Given an array of seed bytes of any length, construct an array of
|
| public static long[] | Returns: an array of lengthn containing long seed valuesan array of seed, int byte valuesthe length of the result array (should be nonnegative) n, int the number of trailing result elements that are required
to be not all zero (should be nonnegative but not larger
than z)n)Given an array of seed bytes of any length, construct an array of
|
| public static long | Returns: along value, randomly chosen using
appropriate environmental entropyReturns a |
| public static int | Returns: the result of hashing zany long value z)Computes Doug Lea's 32-bit mixing function. |
| public static long | Returns: the result of hashing zany long value z)Computes Doug Lea's 64-bit mixing function. |
| public static int | Returns: the result of hashing zany long value z)Computes the 32-bit mixing function for MurmurHash3. |
| public static long | Returns: the result of hashing zany long value z)Computes the 64-bit mixing function for MurmurHash3. |
| public static long | Returns: the result of hashing zany long value z)Computes Stafford variant 13 of the 64-bit mixing function for MurmurHash3. |
| private static boolean |