Random Number
This endpoint generates a random number within a specified range and can optionally return a decimal value.
Endpoint
URL:
https://api.erensko.xyz/v1/random-number
Method:
GET
Description: Generates a random number with information about it.
URL Parameters
Key
Value
min (optional)
The minimum value for the random number generation. Default is 0
. Cannot be greater than the max
if set.
max (optional)
The maximum value for the random number generation. Default is 100
.
decimal (optional)
If set to true
, the generated number will be a decimal. If set to false
(or omitted), the result will be an integer. Default is false
.
Headers
Key
Value
Authorization
Request Example
Response Example
Last updated