Generators
Random Number Generator API
Draw uniformly random integers from any inclusive range.
Request Headers
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | random-number.p.rapidapi.com |
Endpoints
GET
/v1/generate/number Generate random integers in an inclusive range
Parameters
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
count | integer | optional | 1 | 1-100 |
max | integer | optional | 100 | — |
min | integer | optional | 0 | — |
Code Examples
curl --request GET \
--url 'https://random-number.p.rapidapi.com/v1/generate/number?count=1&max=100' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: random-number.p.rapidapi.com' const url = "https://random-number.p.rapidapi.com/v1/generate/number?count=1&max=100";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "random-number.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://random-number.p.rapidapi.com/v1/generate/number"
querystring = {"count": 1, "max": 100}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "random-number.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) Interactive Example
$ GET /v1/generate/number?min=1&max=6&count=3
{"numbers":[4,1,6]} Subscribe & License
Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.
Developer Support
Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.
System Performance
Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.
All Systems Operational