Skip to main content

Random Number Generator

Generate one or many random numbers in any range — integers or decimals with configurable precision, with or without repeats, exclusions, and sort order. Set a seed to reproduce the exact same draw later. Great for draws, sampling and testing.

Input

Settings

Comma-separated numbers to skip during generation.

Same seed + same settings always produces the same numbers.

Output

Generated numbers

Your numbers will appear here.

Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/random-generator/numbers \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "count": "5",
    "min": "1",
    "max": "100",
    "allowRepeat": "true",
    "numberTypes": "integer"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `random-generator__numbers` tool (Random Number Generator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/random-generator/numbers/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="Random Number Generator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

What does this generator do?

It produces truly arbitrary numbers within any range you choose. Generate a single number or up to 100 at once, as integers or decimals (with 0–10 decimal places), and decide whether repeats are allowed — turn them off for lottery-style draws where every number must be unique. You can also exclude specific numbers, sort the results, and set a seed to reproduce the exact same draw later.

Common uses

  • Draws and giveaways — pick winning entries without bias, excluding numbers already claimed.
  • Games and teaching — dice rolls, quiz order, random grouping.
  • Development and testing — quick sample data in a specific range, with a seed for reproducible test fixtures.
  • Lottery-style number picks — unique draws sorted for easy reading, with previously-drawn numbers excluded.

How to use it

  1. Set how many numbers you need and the min/max range.
  2. Choose integer or decimal (and precision for decimals).
  3. Untick Allow repeated numbers if every result must be unique.
  4. Optionally list numbers to exclude, choose a sort order, and set a seed for a repeatable draw.
  5. Hit Generate — copy or download the results.

Note: numbers come from your browser's pseudo-random generator (or a seeded deterministic one, if you set a seed). That's perfect for games, sampling and testing, but for cryptographic purposes use a dedicated secure generator.

Privacy

Everything runs locally in your browser — nothing is sent to a server.

randomnumbergenerator

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.