About this endpoint
What it does
Generates a cryptographically secure random integer within the requested range and returns it in a JSON object. The response also includes the min and max values used for the generation.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| max | Integer | No | Upper bound of the range. Default: 100. |
| min | Integer | No | Lower bound of the range. Default: 0. |
Response
Returns a JSON object with three integer fields: max, min, and value. value is the generated random integer, and min/max reflect the range used.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| max | Integer | No | Upper bound used for generation. |
| min | Integer | No | Lower bound used for generation. |
| value | Integer | No | The generated random integer. |