Here you can find the source of randomDouble()
public static double randomDouble()
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww. j a va2 s .c om*/ * Generates random double value in range of 1.00 to 100.00 rounded to 2 decimal digits * * @return random double value in range of 1.00 to 100.00 */ public static double randomDouble() { return Math.round(Math.random() * 10000d) / 100d; } }