Package nxt.addons
Interface RandomnessSource
- All Known Implementing Classes:
ReproducibleRandomness
public interface RandomnessSource
-
Method Summary
Modifier and TypeMethodDescriptiondoubles()doubles(double randomNumberOrigin, double randomNumberBound) doubles(long streamSize) doubles(long streamSize, double randomNumberOrigin, double randomNumberBound) longgetSeed()ints()ints(int randomNumberOrigin, int randomNumberBound) ints(long streamSize) ints(long streamSize, int randomNumberOrigin, int randomNumberBound) longs()longs(long streamSize) longs(long randomNumberOrigin, long randomNumberBound) longs(long streamSize, long randomNumberOrigin, long randomNumberBound) booleanvoidnextBytes(byte[] bytes) doublefloatintnextInt()intnextInt(int bound) longnextLong()voidsetSeed(long seed)
-
Method Details
-
setSeed
void setSeed(long seed) -
getSeed
long getSeed() -
nextBytes
void nextBytes(byte[] bytes) -
nextInt
int nextInt() -
nextInt
int nextInt(int bound) -
nextLong
long nextLong() -
nextBoolean
boolean nextBoolean() -
nextFloat
float nextFloat() -
nextDouble
double nextDouble() -
ints
-
ints
IntStream ints() -
ints
-
ints
-
longs
-
longs
LongStream longs() -
longs
-
longs
-
doubles
-
doubles
DoubleStream doubles() -
doubles
-
doubles
-