Java Random Double randomDouble()

Here you can find the source of randomDouble()

Description

random Double

License

Open Source License

Return

a random double using RANDOMIZER.nextDouble()

Declaration

public static double randomDouble() 

Method Source Code

//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();
    }
}

Related

  1. randomDouble()
  2. randomDouble()
  3. randomDouble()
  4. randomDouble()
  5. randomDouble()
  6. randomDouble()
  7. randomDouble()
  8. randomDouble(double low, double high)
  9. randomDouble(double min, double max)