Here you can find the source of randRealUniform(double minrange, double maxrange)
Parameter | Description |
---|---|
minrange | - minimum value |
maxrange | - maximum value |
public static double randRealUniform(double minrange, double maxrange)
//package com.java2s; //License from project: Open Source License public class Main { /**// w ww.j a v a2 s . c om * Generates a random real number in the given range. * * @param minrange - minimum value * @param maxrange - maximum value * @return - random number */ public static double randRealUniform(double minrange, double maxrange) { return minrange + (Math.random() * (maxrange - minrange)); } }