Random.org has (among other things) a free HTTP API, and a new JSON API is currently (june 2016) in beta (keys on request).

The HTTP interface (using GET requests) has an Integer Generator, a Sequence Generator and a String Generator.

The JSON interface call names show what's available there:
generateIntegers, generateDecimalFractions, generateGaussians, generateStrings, generateUUIDs and generateBlobs.
With the JSON interface you can even...

...generate digitally signed random data, such that you can prove it really came from RANDOM.ORG (authenticity) and that your application has not tampered with it (integrity). This is useful if you want your application to implement non-repudiation.

Note that they use a quota system. This is based on IP:

RANDOM.ORG uses a simple quota system to make sure nobody hogs all the random numbers produced by the generator.

Answer from user416 on Stack Exchange
🌐
Randomnumberapi
randomnumberapi.com
Random Number API
This is a simple api to generate random numbers, random strings and UUID's.
🌐
RANDOM.ORG
random.org › clients › http › api
RANDOM.ORG - HTTP Interface Description
This page explains how to interface to the true random number service via HTTP.
🌐
Csrng
csrng.net › home › documentation › csrng lite
CSRNG Lite | Random Number Generator API
March 24, 2021 - CSRNG Lite documentation CSRNG Lite is a free API you can call to generate random numbers. It returns a standard JSON response containing a random number in a certain range. How to call the API The URL to call is https://csrng.net/csrng/csrng.php. Calling it without any parameters will return ...
🌐
Csrng
csrng.net › home
Random Number Generator API | NIST Certified cryptographically secure random number generator
To try it, click or query the following URL to pick a random number between 0 and 100: https://csrng.net/csrng/csrng.php?min=0&max=100 · You can change the min and max values in the queried URL to change the scope of the number generator. Have fun! To get the full documentation of CSRNG Lite, CLICK HERE · For more intensive, live websites and custom needs, we offer a customizable API to which you can subscribe.
🌐
RANDOM.ORG
random.org
RANDOM.ORG - True Random Number Service
Integer Widget Wizard will put a mini-RANDOM.ORG on your web page or blog Draw Widget Wizard will put the result of a paid drawing on your web page or blog HTTP API to get true random numbers into your own code Guidelines describe how to avoid getting in trouble Banned Hosts lists who didn't ...
🌐
GitHub
github.com › davidfig › random
GitHub - davidfig/random: a javascript random number API with seeded support. not cryptographically sound. useful for games · GitHub
/** * generates a seeded number * @param {number} seed * @param {object} [options] * @param {string} [PRNG="alea"] - name of algorithm, see https://github.com/davidbau/seedrandom * @param {(boolean|string)} [state] - can include the state returned from save() */ seed(seed, options) { /** * saves the state of the random generator * can only be used after Random.seed() is called with options.state = true * @returns {number} state */ save() { /** * restores the state of the random generator * @param {number} state */ restore(state) { /** * changes the generator to use the old Math.sin-based rando
Author   davidfig
🌐
Randommer
randommer.io
Generate Random Data API - Randommer
Generate free random numbers, phone numbers, names list, security numbers, validate telephones and everything that is random. Free API support is included
🌐
Legato
docs.legato.io › 20_08 › c_rand.html
Random Number API - Legato Docs
This Random Number API is a wrapper around a cryptographic pseudo-random number generator (CPRNG) that is properly seeded with entropy.
Find elsewhere
Top answer
1 of 2
4

Random.org has (among other things) a free HTTP API, and a new JSON API is currently (june 2016) in beta (keys on request).

The HTTP interface (using GET requests) has an Integer Generator, a Sequence Generator and a String Generator.

The JSON interface call names show what's available there:
generateIntegers, generateDecimalFractions, generateGaussians, generateStrings, generateUUIDs and generateBlobs.
With the JSON interface you can even...

...generate digitally signed random data, such that you can prove it really came from RANDOM.ORG (authenticity) and that your application has not tampered with it (integrity). This is useful if you want your application to implement non-repudiation.

Note that they use a quota system. This is based on IP:

RANDOM.ORG uses a simple quota system to make sure nobody hogs all the random numbers produced by the generator.

2 of 2
2

I'd like to recommend one more, a random number generator based on quantum fluctuations within a vacuum. It's called the ANU Quantum Random Numbers Server provided by the Austrian National University. This service provides an API that connects to their lab in real time.

The vacuum is described very differently in the quantum mechanical context than in the classical context. Traditionally, a vacuum is considered as a space that is empty of matter or photons. Quantum mechanically, however, that same space resembles a sea of virtual particles appearing and disappearing all the time. This result is due to the fact that the vacuum still possesses a zero-point energy. Consequently, the electromagnetic field of the vacuum exhibits random fluctuations in phase and amplitude at all frequencies. By carefully measuring these fluctuations, we are able to generate ultra-high bandwidth random numbers.

Along with the API, you also have the ability to see and listen to the results of the random numbers. They also have support for authenticated and secured connections for the live streams and random blocks.

There is even a C# library called "Quantum random number generator in C#" which can be found here.

ANU Quantum Random Numbers Server

🌐
Random
api.random.org › json-rpc › 2 › basic
Basic API (Release 2) - RANDOM.ORG
This method generates true random decimal fractions from a uniform distribution across the [0,1) interval with a user-defined number of decimal places. Your client must set the method property of its JSON-RPC request object to generateDecim...
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › util › Random.html
Random (Java Platform SE 8 )
1 week ago - An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. (See Donald Knuth, The Art of Computer Programming, Volume 2, Section 3.2.1.) If two instances of Random are created with the ...
🌐
Zephyr Project
docs.zephyrproject.org › latest › services › crypto › random › index.html
Random Number Generation — Zephyr Project Documentation
The random API subsystem provides random number generation APIs in both cryptographically and non-cryptographically secure instances. Which random API to use is based on the cryptographic requirements of the random number.
🌐
PublicAPI
publicapi.dev › random-data-api
Random Data API - PublicAPI
The base URL for accessing the Random Data API is: https://random-data-api.com · Retrieves a random number within a specified range.
🌐
ScienceDirect
sciencedirect.com › science › article › pii › S2352711024002127
Easy to integrate API for accessing true random numbers generated with IDQ’s Quantis Appliance - ScienceDirect
August 5, 2024 - Therefore, we introduce libqrng, written in C, which offers access to IDQ’s Quantis Appliance high-quality random numbers through an easy-to-integrate API for embedded and distributed computing applications that requires randomness and an interface for using the library from different programming languages (e.g., Python).
🌐
GitHub
github.com › michaelprice232 › random-number-generator-api
GitHub - michaelprice232/random-number-generator-api: Simple REST microservice for serving random numbers
A simple Docker based microservice for generating random numbers via API requests and storing them in a Postgres Database for later retrieval.
Author   michaelprice232
🌐
IBM
ibm.com › support › pages › generating-random-numbers-using-api-qc3genprns
Generating Random Numbers Using API Qc3GenPRNs
December 18, 2019 - The API CEERAN0 can be used to generate random numbers using the Qc3GenPRNs API.
🌐
Kaspersky
support.kaspersky.com › kos-community-edition › 1.2 › libkos_random_api
Generating random numbers (random_api.h)
May 21, 2024 - The API generates random numbers and includes functions that can be used to ensure high entropy (high level of unpredictability) of the seed value of the random number generator. The start number of the random number generator (seed) determines the sequence of the generated random numbers.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Math › random
Math.random() - JavaScript - MDN Web Docs - Mozilla
The Math.random() static method returns a floating-point, pseudo-random number that's greater than or equal to 0 and less than 1, with approximately uniform distribution over that range — which you can then scale to your desired range. The implementation selects the initial seed to the random ...
🌐
Rutgers CS
cs.rutgers.edu › courses › 111 › classes › fall_2011_tjang › texts › notes-java › algorithms › random › random-api.html
Java: Random numbers - API
The methods of the Random class often produce random numbers in a more convenient form, but requires creating an object, which sometimes is inconvenient. In constrast, the Math.random() method produces a double value which must sometimes be translated and cast into the form you need it.