Java Random Double generateRandomDoubleInRange(double min, double max)

Here you can find the source of generateRandomDoubleInRange(double min, double max)

Description

generate Random Double In Range

License

Open Source License

Declaration

public static double generateRandomDoubleInRange(double min, double max) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double generateRandomDoubleInRange(double min, double max) {
        return min + (max - min) * Math.random();
    }/*w  ww.j  a  v a  2 s. c  o m*/
}

Related

  1. generateRandomLongitude()
  2. getDouble()
  3. getDouble()
  4. getDoubleInRange(double minValue, double maxValue)