Here you can find the source of randomDoubleBetween(double a, double b)
public static double randomDoubleBetween(double a, double b)
//package com.java2s; //License from project: Open Source License public class Main { public static double randomDoubleBetween(double a, double b) { return (Math.random() * (b - a) + a); }/*from ww w. jav a2 s . co m*/ }