Java Random Double randomDouble(double min, double max)

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

Description

random Double

License

Apache License

Parameter

Parameter Description
min a parameter
max a parameter

Return

double

Declaration

public static double randomDouble(double min, double max) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/* w  w  w.j a  v a 2s .co  m*/
     *  @param min
     *  @param max
     *  @return 
     * @return double
     */
    public static double randomDouble(double min, double max) {
        return (min + Math.random() * (max - min));
    }
}

Related

  1. randomDouble()
  2. randomDouble()
  3. randomDouble()
  4. randomDouble(double low, double high)
  5. randomDouble(double min, double max)
  6. randomDouble(double min, double max)
  7. randomDouble(int min, int max)
  8. randomDouble(int start, int end)
  9. randomDoubleArray(final int mDimensionality)