Here you can find the source of random(final double min, final double max)
static public double random(final double min, final double max)
//package com.java2s; //License from project: Apache License public class Main { static public double random(final double min, final double max) { final double random = Math.random(); return random * (max - min) + min; }/*from w w w .j ava2s . co m*/ }