---
title: "Random Number Generator"
method: POST
path: "/api/v1/tools/random-number-generator"
tags: ["tools"]
---

# Random Number Generator

`POST /api/v1/tools/random-number-generator`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/random-number-generator`
- Auth: HTTP bearer

Draw random whole numbers between a minimum and maximum, inclusive, using cryptographic randomness. Ask for several at once, with or without repeats, for dice, lottery draws or samples.

## Request body

- object
  - `min` integer
  - `max` integer
  - `count` integer
  - `allowDuplicates` boolean

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `numbers` integer[]
    - `min` integer
    - `max` integer
    - `count` integer
    - `unique` boolean

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

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