Class RandomUtils
java.lang.Object
org.optaplanner.core.impl.solver.random.RandomUtils
- 
Method Summary
Modifier and TypeMethodDescriptionstatic doublenextDouble(Random random, double n) MimicsRandom.nextInt(int)for doubles.static longMimicsRandom.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:
 
 
 -