The Java api has a method on how to generate integers between 0(inclusive) and n(exclusive), but does not have a method to generate random numbers of double values, given a certain range, say 2.0 to 3.0. How can this be done?
double x = 0.7 + Double.valueOf(Math.random()*(9.0-0.7)).intValue();
The result its just few numbers of type .7