# Tutorial

## 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](https://docs.cryptosat.io/cryptosat/api-documentation/authentication).

### Get public randomness

Send the following request:

**GET** [`https://api.cryptosat.io/api/randomness?num=3`](https://api.cryptosat.io/api/randomness?num=3)

You should get the following similar response:

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

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