Doubles { static Gen<Double> fromZeroToOne() { return range(0, FRACTION_BITS, 0, l -> l * DOUBLE_UNIT); }    }
@Test public void generatesDistinctValuesBetweenZeroAndOne() { Gen<Double> testee = Doubles.fromZeroToOne(); assertThatGenerator(testee).generatesAtLeastNDistinctValues(1000); }