Apache Commons logo Apache Commons RNG

Apache Commons RNG: Random Numbers Generators

Commons RNG provides implementations of pseudo-random numbers generators that are either faster or of higher quality (and sometimes both) than java.util.Random. 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.5</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>