Skip to content

manoelcampos/random-org-java-client

Repository files navigation

A Java client to get real random integers from https://random.org build javadoc

How to use

Create an account at https://random.org and get an API key.

Include the library inside your project's pom.xml:

<dependency>
    <groupId>com.manoelcampos</groupId>
    <artifactId>random-org-client</artifactId>
    <version>1.1.0</version>
</dependency>

Example

Check an example inside the main method here.

The example is loading the service API key from a .env file. In order to make it work in your project, create a .env file inside the project root dir and insert your API key, as demonstrated in .env.example.

If you don't want to use an .env file, just pass the API key to the RandomOrgClient constructor.