Snippets Collections
  public static EasyRandomParameters getEasyRandomParameters(int collectionSize) {
    return new EasyRandomParameters()
        .randomize(BigDecimal.class, BIG_DECIMAL_RANDOMIZER)
        .collectionSizeRange(collectionSize, collectionSize);
  }

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

Fri Oct 15 2021 09:20:54 GMT+0000 (UTC)

#java #test #easyrandom
star

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

#java #test #easyrandom

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension