org.optaplanner.core.impl.solver.random
Class RandomUtils
java.lang.Object
  
org.optaplanner.core.impl.solver.random.RandomUtils
public class RandomUtils
- extends Object
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
nextLong
public static long nextLong(Random random,
                            long n)
- Mimics 
Random.nextInt(int) for longs.
- Parameters:
 random - never nulln - > 0L
- Returns:
 - like 
Random.nextInt(int) but for a long - See Also:
 Random.nextInt(int)
 
 
nextDouble
public static double nextDouble(Random random,
                                double n)
- Mimics 
Random.nextInt(int) for doubles.
- Parameters:
 random - never nulln - > 0.0
- Returns:
 - like 
Random.nextInt(int) but for a double - See Also:
 Random.nextInt(int)
 
 
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.