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 random = new Random(); /**/*from www . j a v a 2 s . c om*/ * Return a uniformly distributed variable in the interval [min, max). */ public static double randDouble(double min, double max) { return random.nextDouble() * (max - min) + min; } }