@Test public void testNextDouble() throws Exception { for (int i = 0; i < 10000; i++) { Assert.assertTrue(RandomUtils.nextDouble(10) <= 10); Assert.assertTrue(RandomUtils.nextDouble(20, 200) >= 20); } }
public static double nextDouble(double max) { return nextDouble(0, max); }
RandomUtils { public static double nextDouble(double max) { return nextDouble(0, max); } }
RandomUtils { public static double nextDouble(double max) { return nextDouble(0, max); }  }
RandomUtils { public static double nextDouble(double max) { return nextDouble(0, max); }  static int nextInt(int min, int max); static int nextInt(@Nonnull Random random, int min, int max); static int nextInt(Range<Integer> range); static int nextInt(@Nonnull Random random, @Nonnull Range<Integer> range); static double nextDouble(double max); static double nextDouble(double min, double max); static double nextDouble(@Nonnull Random random, double min, double max); static long nextLong(long bound); static long nextLong(@Nonnull Random random, long bound); static long nextLong(long origin, long bound); static long nextLong(@Nonnull Random random, long origin, long bound); static Random getRandom(); static void nextBytes(byte[] bytes); static int nextInt(); static int nextInt(int bound); static long nextLong(); static boolean nextBoolean(); static float nextFloat(); static double nextDouble(); static double nextGaussian(); }
RandomUtils { public static double nextDouble(double max) { return nextDouble(0, max); }  static int nextInt(int min, int max); static int nextInt(@Nonnull Random random, int min, int max); static int nextInt(Range<Integer> range); static int nextInt(@Nonnull Random random, @Nonnull Range<Integer> range); static double nextDouble(double max); static double nextDouble(double min, double max); static double nextDouble(@Nonnull Random random, double min, double max); static long nextLong(long bound); static long nextLong(@Nonnull Random random, long bound); static long nextLong(long origin, long bound); static long nextLong(@Nonnull Random random, long origin, long bound); static Random getRandom(); static void nextBytes(byte[] bytes); static int nextInt(); static int nextInt(int bound); static long nextLong(); static boolean nextBoolean(); static float nextFloat(); static double nextDouble(); static double nextGaussian();  }