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 RandomnessSource
public long getSeed()
getSeed
in interface RandomnessSource
public void nextBytes(byte[] bytes)
nextBytes
in interface RandomnessSource
public int nextInt()
nextInt
in interface RandomnessSource
public int nextInt(int bound)
nextInt
in interface RandomnessSource
public long nextLong()
nextLong
in interface RandomnessSource
public boolean nextBoolean()
nextBoolean
in interface RandomnessSource
public float nextFloat()
nextFloat
in interface RandomnessSource
public double nextDouble()
nextDouble
in interface RandomnessSource
public java.util.stream.IntStream ints(long streamSize)
ints
in interface RandomnessSource
public java.util.stream.IntStream ints()
ints
in interface RandomnessSource
public java.util.stream.IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBound)
ints
in interface RandomnessSource
public java.util.stream.IntStream ints(int randomNumberOrigin, int randomNumberBound)
ints
in interface RandomnessSource
public java.util.stream.LongStream longs(long streamSize)
longs
in interface RandomnessSource
public java.util.stream.LongStream longs()
longs
in interface RandomnessSource
public java.util.stream.LongStream longs(long streamSize, long randomNumberOrigin, long randomNumberBound)
longs
in interface RandomnessSource
public java.util.stream.LongStream longs(long randomNumberOrigin, long randomNumberBound)
longs
in interface RandomnessSource
public java.util.stream.DoubleStream doubles(long streamSize)
doubles
in interface RandomnessSource
public java.util.stream.DoubleStream doubles()
doubles
in interface RandomnessSource
public java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, double randomNumberBound)
doubles
in interface RandomnessSource
public java.util.stream.DoubleStream doubles(double randomNumberOrigin, double randomNumberBound)
doubles
in interface RandomnessSource