Here you can find the source of getDouble()
public static double getDouble()
//package com.java2s; import java.util.Random; public class Main { private static final Random RANDOM = new Random(); /**/*from w w w . j a va2 s . c om*/ * Gets a random double. * * @return random double. */ public static double getDouble() { return RANDOM.nextDouble(); } }