public interface Generator
For example by wrapping in a generator we can support both java.util.Random and java.util
.SplittableRandom
| Modifier and Type | Method and Description |
|---|---|
boolean |
nextBoolean()
Return a pseudorandom normally distributed boolean
|
double |
nextDouble()
Return a pseudorandom normally distributed double from
0.0 (inclusive) to 1.0 (exclusive) |
float |
nextFloat()
Return a pseudorandom normally distributed float from
0.0f (inclusive) to 1.0f (exclusive) |
int |
nextInt()
Return a pseudorandom normally distributed int
|
int |
nextInt(int bound)
Return a pseudorandom normally distributed long between 0 (inclusive) and the given bound(exlusive)
|
long |
nextLong()
Return a pseudorandom normally distributed long
|
long nextLong()
boolean nextBoolean()
int nextInt()
int nextInt(int bound)
bound - the exclusive upper bound for the number generationfloat nextFloat()
0.0f (inclusive) to 1.0f (exclusive)0.0f (inclusive) to 1.0f (exclusive)double nextDouble()
0.0 (inclusive) to 1.0 (exclusive)0.0 (inclusive) to 1.0 (exclusive)Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.