Class RandomUtils
java.lang.Object
org.optaplanner.core.impl.solver.random.RandomUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
nextDouble
(Random random, double n) MimicsRandom.nextInt(int)
for doubles.static long
MimicsRandom.nextInt(int)
for longs.
-
Method Details
-
nextLong
MimicsRandom.nextInt(int)
for longs.- Parameters:
random
- never nulln
-> 0L
- Returns:
- like
Random.nextInt(int)
but for a long - See Also:
-
nextDouble
MimicsRandom.nextInt(int)
for doubles.- Parameters:
random
- never nulln
-> 0.0
- Returns:
- like
Random.nextInt(int)
but for a double - See Also:
-