public class RandomUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static double | nextDouble(Random random,
          double n)Mimics  Random.nextInt(int)for doubles. | 
| static long | nextLong(Random random,
        long n)Mimics  Random.nextInt(int)for longs. | 
public static long nextLong(Random random, long n)
Random.nextInt(int) for longs.random - never nulln - > 0LRandom.nextInt(int) but for a longRandom.nextInt(int)public static double nextDouble(Random random, double n)
Random.nextInt(int) for doubles.random - never nulln - > 0.0Random.nextInt(int) but for a doubleRandom.nextInt(int)Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.