Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion 18 README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is a Java implementation of the RANDOM.ORG JSON-RPC API (R1). It provides e
Installation
------------

Requires the `gson <https://code.google.com/p/google-gson/>`_ lib for normal operation, and the `junit <http://junit.org/>`_ lib to run tests.
Requires the `gson <https://code.google.com/p/google-gson/>`_ lib and `Commons Codec <http://commons.apache.org/proper/commons-codec/>`_ lib for normal operation, and the `junit <http://junit.org/>`_ lib to run tests.

Usage
-----
Expand Down Expand Up @@ -72,6 +72,22 @@ Finally, it is possible to request live results as-soon-as-possible and without

[8, 10, 10, 4, 0]

There is even a very simple way to get random numbers with the `RandomOrgRandom`.

You can use it like a normal `java.util.Random` but you'll get true random numbers.

This class manages the most stuff you need to get connected to RANDOM.ORG you only need a API-key.

.. code-block:: java

Random ran;
ran = new RandomOrgRandom(YOUR_API_KEY_HERE);
System.out.println(ran.nextInt(10));
System.out.println(ran.nextFloat());

6
0.6085736

Documentation
-------------

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.