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: Open Source License import java.util.Random; public class Main { private static Random rand = new Random(); public static double randDouble(double min, double max) { //Random rand = new Random(); rand.setSeed(System.currentTimeMillis()); double randomNum = min + (rand.nextDouble() * ((max - min) + 1)); return randomNum; }/*from w ww . j a v a2s .c om*/ }