randomDoubleBetween

A random double between min (inclusive) and max (inclusive). If you wish to have an exclusive range, use Math.nextAfter to adjust the range.

The code was inspired by GeoTestUtil from Apache Lucene.

Parameters

min

Left range boundary, inclusive. May be Double.NEGATIVE_INFINITY, but not NaN.

max

Right range boundary, inclusive. May be Double.POSITIVE_INFINITY, but not NaN.