Tutorial

Provides documentation of API endpoint for getting randomness.

Tutorial

The following is an illustrative example of generating an array of three-digit random numbers.

Authentication

Make sure you provide an API in the header.

Get public randomness

Send the following request:

GET https://api.cryptosat.io/api/randomness?num=3

You should get the following similar response:

{
    "random_numbers": [
        0.548,
        0.361,
        0.74
    ]
}

Note that the num query parameter corresponds to the desired amount of generated random numbers.

Last updated