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