Simple random number generator API built with Next.js.
Useful for n8n, Make, scripts, or any workflow where you just need a quick random number between a minimum and maximum value.
A hosted version is available:
https://useless-rng-api.vercel.app
- Simple HTTP API
- Returns a random number between
minandmax - Built with Next.js
- Easy to deploy on Vercel or any platform that supports Next.js
- Useful for automation tools like n8n and Make
- Lightweight and stateless
GET /api/rng
| Parameter | Required | Description |
|---|---|---|
min |
yes | Minimum number |
max |
yes | Maximum number |
[https://useless-rng-api.vercel.app/api/rng?min=1&max=100](https://useless-rng-api.vercel.app/api/rng?min=1&max=100)
{
"min": 1,
"max": 100,
"number": 42
}Use a standard HTTP request node.
Example configuration:
Method
GET
URL
https://useless-rng-api.vercel.app/api/rng?min=1&max=10
The response will contain the generated number which can be used in your workflow logic.
Clone the repository:
git clone https://github.com/your-username/useless-rng-api.gitInstall dependencies:
npm installRun the development server:
npm run devThe API will be available at:
http://localhost:3000/api/rng?min=1&max=10
The easiest way:
- Fork or clone the repository
- Import the project in Vercel
- Deploy
Vercel automatically detects Next.js projects.
Since the project uses Next.js, it can be deployed to:
- Vercel
- Railway
- Render
- Docker environments
- Any Node.js server supporting Next.js
Build the project:
npm run buildStart the production server:
npm start/pages
/api
rng.ts
index.tsx
/api/rng→ Random number API endpoint/→ Simple project page with usage instructions and SEO metadata
MIT