Here you can find the source of randomDouble(double min, double max)
Parameter | Description |
---|---|
min | a parameter |
max | a parameter |
public static double randomDouble(double min, double max)
//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)); } }