Here you can find the source of generateRandomDoubleInRange(double min, double max)
public static double generateRandomDoubleInRange(double min, double max)
//package com.java2s; //License from project: Open Source License public class Main { public static double generateRandomDoubleInRange(double min, double max) { return min + (max - min) * Math.random(); }/*w ww.j a v a 2 s. c o m*/ }