public class ReproducibleRandomness extends java.lang.Object implements RandomnessSource
| Constructor and Description |
|---|
ReproducibleRandomness() |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.DoubleStream |
doubles() |
java.util.stream.DoubleStream |
doubles(double randomNumberOrigin,
double randomNumberBound) |
java.util.stream.DoubleStream |
doubles(long streamSize) |
java.util.stream.DoubleStream |
doubles(long streamSize,
double randomNumberOrigin,
double randomNumberBound) |
long |
getSeed() |
java.util.stream.IntStream |
ints() |
java.util.stream.IntStream |
ints(int randomNumberOrigin,
int randomNumberBound) |
java.util.stream.IntStream |
ints(long streamSize) |
java.util.stream.IntStream |
ints(long streamSize,
int randomNumberOrigin,
int randomNumberBound) |
java.util.stream.LongStream |
longs() |
java.util.stream.LongStream |
longs(long streamSize) |
java.util.stream.LongStream |
longs(long randomNumberOrigin,
long randomNumberBound) |
java.util.stream.LongStream |
longs(long streamSize,
long randomNumberOrigin,
long randomNumberBound) |
boolean |
nextBoolean() |
void |
nextBytes(byte[] bytes) |
double |
nextDouble() |
float |
nextFloat() |
int |
nextInt() |
int |
nextInt(int bound) |
long |
nextLong() |
void |
setSeed(long seed) |
public void setSeed(long seed)
setSeed in interface RandomnessSourcepublic long getSeed()
getSeed in interface RandomnessSourcepublic void nextBytes(byte[] bytes)
nextBytes in interface RandomnessSourcepublic int nextInt()
nextInt in interface RandomnessSourcepublic int nextInt(int bound)
nextInt in interface RandomnessSourcepublic long nextLong()
nextLong in interface RandomnessSourcepublic boolean nextBoolean()
nextBoolean in interface RandomnessSourcepublic float nextFloat()
nextFloat in interface RandomnessSourcepublic double nextDouble()
nextDouble in interface RandomnessSourcepublic java.util.stream.IntStream ints(long streamSize)
ints in interface RandomnessSourcepublic java.util.stream.IntStream ints()
ints in interface RandomnessSourcepublic java.util.stream.IntStream ints(long streamSize,
int randomNumberOrigin,
int randomNumberBound)
ints in interface RandomnessSourcepublic java.util.stream.IntStream ints(int randomNumberOrigin,
int randomNumberBound)
ints in interface RandomnessSourcepublic java.util.stream.LongStream longs(long streamSize)
longs in interface RandomnessSourcepublic java.util.stream.LongStream longs()
longs in interface RandomnessSourcepublic java.util.stream.LongStream longs(long streamSize,
long randomNumberOrigin,
long randomNumberBound)
longs in interface RandomnessSourcepublic java.util.stream.LongStream longs(long randomNumberOrigin,
long randomNumberBound)
longs in interface RandomnessSourcepublic java.util.stream.DoubleStream doubles(long streamSize)
doubles in interface RandomnessSourcepublic java.util.stream.DoubleStream doubles()
doubles in interface RandomnessSourcepublic java.util.stream.DoubleStream doubles(long streamSize,
double randomNumberOrigin,
double randomNumberBound)
doubles in interface RandomnessSourcepublic java.util.stream.DoubleStream doubles(double randomNumberOrigin,
double randomNumberBound)
doubles in interface RandomnessSource