Here you can find the source of getRandomDouble(double a, double b)
public static double getRandomDouble(double a, double b)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.ThreadLocalRandom; public class Main { public static double getRandomDouble(double a, double b) { if (a == b) return a; return ThreadLocalRandom.current().nextDouble(a, b); }/*from w ww . java 2 s . c o m*/ }