Here you can find the source of randomDouble()
RANDOMIZER.nextDouble()
public static double randomDouble()
//package com.java2s; /******************************************************************************* * Copyright (c) 2010-2015 BSI Business Systems Integration AG. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors:/*from w ww . java 2 s . c om*/ * BSI Business Systems Integration AG - initial API and implementation ******************************************************************************/ import java.util.Random; public class Main { private static final Random RANDOMIZER = new Random(); /** * @return a random double using <code>RANDOMIZER.nextDouble()</code> */ public static double randomDouble() { return RANDOMIZER.nextDouble(); } }