DecimalRandom implements OrderedRandom<Double> { @Override public Double lower(final Double upper) { return this.between(this.min, upper); } DecimalRandom(final double min, final double max); @Override Double between(final Double lower, final Double upper); @Override Double greater(final Double lower); @Override Double lower(final Double upper);  }
@Test public void returnsLowerDouble() { final DecimalRandom rand = new DecimalRandom( DecimalRandomTest.MIN, DecimalRandomTest.MAX ); final Double value = DecimalRandomTest.random(); MatcherAssert.assertThat( rand.lower(value), Matchers.lessThanOrEqualTo(value) ); }