---
title: "Random Number Generator"
method: GET
path: "/api/calc/random-number-generator"
tags: ["Math"]
---

# Random Number Generator

`GET /api/calc/random-number-generator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/random-number-generator`
- Auth: none declared

Draw one number or up to 1,000 from any range – whole or decimal, with or without repeats. Useful for raffles, lottery picks, dice rolls and classroom draws.

## Query parameters

- `min` number: Minimum
- `max` number: Maximum
- `count` number: How many numbers
- `kind` 'integer' | 'decimal': Type
- `decimals` number: Decimal places
- `unique` 'no' | 'yes': Allow duplicates?
- `sort` 'none' | 'asc' | 'desc': Order

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
