UtilityBase logoUtilityBase

Generators

Random Number Generator

Generate random numbers in any range — single or in bulk, with or without repeats.

Updated February 12, 2026

How to use the random number generator

  1. 1Enter the minimum and maximum values (inclusive).
  2. 2Choose how many numbers to generate.
  3. 3Toggle Allow duplicates and Sort results as needed.
  4. 4Click Generate, then Copy to grab the results.

Common uses

  • Draw giveaway or raffle winners fairly.
  • Generate random samples for testing.
  • Pick lottery-style number sets.

Frequently asked questions

Are the numbers truly random?

They come from crypto.getRandomValues, your operating system's cryptographically secure randomness source — unbiased and unpredictable, which is more than fair for draws and sampling.

How do I run a raffle where numbers can't repeat?

Set your range (e.g., 1 to 200 entrants), set how many winners to draw, and turn off Allow duplicates. Each drawn number is then unique.

Are the minimum and maximum included?

Yes — the range is inclusive on both ends. A range of 1 to 10 can produce both 1 and 10.

Can I generate a large batch?

Yes, up to 10,000 numbers at once. With duplicates off, the count can't exceed the size of the range.

About this tool

The random number generator produces numbers in any range you set, one at a time or in bulk. Options control whether duplicates are allowed (turn them off for raffle draws where each number should appear once) and whether results come sorted. Numbers are drawn from the browser's cryptographically secure random source, so results are unbiased — fair for giveaways, sampling, games, and quick decisions. Copy all results with one click.

Like everything on UtilityBase, the random number generator runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more generators here.

Was this tool helpful?

Related tools