Here you can find the source of random(double min, double max)
public static double random(double min, double max)
//package com.java2s; public class Main { public static double random(double min, double max) { return min + Math.random() * (max - min); }/*from w ww . ja va2 s . c om*/ }