randFloat static method

double randFloat(
  1. double min,
  2. double max
)

Computes a random float value within a given min/max range.

Implementation

static double randFloat(double min, double max ) {
	return min + math.Random().nextDouble() * ( max - min );
}