Class RandomUtils
- java.lang.Object
- 
- org.optaplanner.core.impl.solver.random.RandomUtils
 
- 
 public class RandomUtils extends Object 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static doublenextDouble(Random random, double n)MimicsRandom.nextInt(int)for doubles.static longnextLong(Random random, long n)MimicsRandom.nextInt(int)for longs.
 
- 
- 
- 
Method Detail- 
nextLongpublic static long nextLong(Random random, long n) MimicsRandom.nextInt(int)for longs.- Parameters:
- random- never null
- n-- > 0L
- Returns:
- like Random.nextInt(int)but for a long
- See Also:
- Random.nextInt(int)
 
 - 
nextDoublepublic static double nextDouble(Random random, double n) MimicsRandom.nextInt(int)for doubles.- Parameters:
- random- never null
- n-- > 0.0
- Returns:
- like Random.nextInt(int)but for a double
- See Also:
- Random.nextInt(int)
 
 
- 
 
-