Java Random Double getDouble()

Here you can find the source of getDouble()

Description

Gets a random double.

License

Open Source License

Return

random double.

Declaration

public static double getDouble() 

Method Source Code


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

Related

  1. generateRandomDoubleInRange(double min, double max)
  2. generateRandomLongitude()
  3. getDouble()
  4. getDoubleInRange(double minValue, double maxValue)
  5. getDoubleSpecial()
  6. getRandomDouble()
  7. getRandomDouble(double min, double max)