randFloatSpread static method

double randFloatSpread(
  1. double range
)

Implementation

static double randFloatSpread(double range) {
  return range * (0.5 - Math.random());
}