74 |
|
* </ul> |
75 |
|
* |
76 |
|
* @author Guy Steele |
77 |
+ |
* @author Doug Lea |
78 |
|
* @since 1.8 |
79 |
|
*/ |
80 |
|
public class SplittableRandom { |
113 |
|
* The value of gamma differs for each instance across a series of |
114 |
|
* splits, and is generated using a slightly stripped-down variant |
115 |
|
* of the same algorithm, but operating across calls to split(), |
116 |
< |
* not calls to nextLong(): Each instance carries the state of |
116 |
> |
* not calls to nextSeed(): Each instance carries the state of |
117 |
|
* this generator as nextSplit, and uses mix64(nextSplit) as its |
118 |
|
* own gamma value. Computations of gammas themselves use a fixed |
119 |
|
* constant as the second argument to the addGammaModGeorge |
753 |
|
|
754 |
|
/** |
755 |
|
* Returns a stream with the given {@code streamSize} number of |
756 |
< |
* pseudorandom {@code double} values. |
756 |
> |
* pseudorandom {@code double} values, each between {@code 0.0} |
757 |
> |
* (inclusive) and {@code 1.0} (exclusive). |
758 |
|
* |
759 |
|
* @param streamSize the number of values to generate |
760 |
|
* @return a stream of {@code double} values |
772 |
|
|
773 |
|
/** |
774 |
|
* Returns an effectively unlimited stream of pseudorandom {@code |
775 |
< |
* double} values. |
775 |
> |
* double} values, each between {@code 0.0} (inclusive) and {@code |
776 |
> |
* 1.0} (exclusive). |
777 |
|
* |
778 |
|
* @implNote This method is implemented to be equivalent to {@code |
779 |
|
* doubles(Long.MAX_VALUE)}. |