### Question:
BigDecimalGenerator implements Generator<BigDecimal> { @Override public BigDecimal next() { if (range.lowerBound().compareTo(range.upperBound()) == 0) { return range.lowerBound(); } final double lowerBound = range.lowerBound().doubleValue(); final double upperBound = range.upperBound().doubleValue(); return valueOf(randomValues.randomDouble(lowerBound, upperBound, scale)); } BigDecimalGenerator(final RandomValues randomValues, final Range<BigDecimal> range, final int scale); @Override BigDecimal next();  }### Answer:
@Test public void defaultScaleIsUpTo2dp() { assertThat(RDG.bigDecimal(closed(ZERO, TEN)).next().scale()) .isGreaterThanOrEqualTo(1) .isLessThanOrEqualTo(2); }