Apache Commons logo Apache Commons RNG

Apache Commons RNG: Random Numbers Generators

Commons RNG provides implementations of pseudo-random numbers generators that are faster; of higher quality; and/or of a longer period than java.util.Random and java.util.SplittableRandom. Utilities are provided for sampling from distributions, collections and geometric shapes.

The Bill of Materials (BOM) is provided to aid in dependency management of the Apache Commons RNG modules.

The BOM can be imported into a Maven pom to manage the module versions:

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-rng-bom</artifactId>
      <version>1.6</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>