EasyRandom BigDecimal Randomizer

PHOTO EMBED

Fri Oct 15 2021 09:19:22 GMT+0000 (UTC)

Saved by @mkhaired #java #test #easyrandom

  public static final Randomizer<BigDecimal> BIG_DECIMAL_RANDOMIZER =
      () ->
          BigDecimal.valueOf(ThreadLocalRandom.current().nextDouble(0, 100))
              .setScale(8, RoundingMode.DOWN);
content_copyCOPY