Skip to content
HandfulTools

Random Number Generator

Draw random numbers for games, raffles, sampling or decisions. Choose a range, how many numbers you need, and whether repeats are allowed.

No data needed

Loading…

How to use

  1. Enter the minimum and maximum.
  2. Choose how many numbers you need.
  3. Tick “No duplicates” for a lottery-style draw.
  4. Click Generate.

How it works

Numbers come from the browser's cryptographically secure generator (crypto.getRandomValues) with rejection sampling, which guarantees every integer in the range has exactly the same probability. Many simple generators using “random % range” are slightly biased — this one isn't.

Both the minimum and maximum are included in the possible results.

Examples

Dice roll
Range 1–6, one number.
Lottery-style draw
6 unique numbers between 1 and 49, sorted.

Common uses

  • Raffles and giveaways
  • Games and classroom activities
  • Random sampling

Privacy & security

This tool does not take any personal data or files. Results are generated on your device. How each tool handles files

Frequently asked questions

Are the numbers truly random?

They come from a cryptographically secure pseudo-random generator seeded by your operating system's entropy, suitable even for security use.

Can I use this for an official lottery?

Official draws often need certified, audited processes. Use this for informal draws.

Last updated: