Here you can find the source of randDouble(double min, double max)
public static double randDouble(double min, double max)
//package com.java2s; //License from project: Apache License import java.util.Random; public class Main { public static double randDouble(double min, double max) { Random rnd = new Random(); return rnd.nextDouble() * (max - min) + min; }/* w w w . j a va2 s. c o m*/ public static double randDouble(double min, double max, Random rnd) { return rnd.nextDouble() * (max - min) + min; } }