AZ Tools

Random Number Generator

Random

Pick a range, set how many numbers you want, and the tool draws them using the Web Crypto API for uniform, unbiased randomness. Toggle 'unique' to draw without replacement (good for lottery numbers), pick a sort order, or load a quick preset for 6/45 lotto, Powerball, or a couple of dice. Output copies in commas, spaces, or one number per line.

Presets

How to use

  1. Set the min / max range and how many numbers to draw.
  2. Toggle unique if you don't want duplicates.
  3. Pick a sort order and an output separator.
  4. Click Generate.

Frequently asked questions

How random is it?
Uses crypto.getRandomValues + rejection sampling so every number in the range is equally likely — no modulo bias even when the range doesn't divide evenly into 2³².
Is it good enough for a real lottery draw?
Statistically yes — the same primitive that powers TLS keys. For any official draw you'd still need an auditable process; this is for fair fun and fair selection.
Why does 'unique' have a cap?
If you ask for more unique numbers than fit in your range (e.g. 10 uniques in 1–5), there's no solution. The tool shows a warning instead of looping forever.
What's Powerball / Lotto in the presets?
Powerball uses 5 unique numbers from 1–69 (the main pool). Lotto-style 6/45 uses 6 unique from 1–45. Dice draws 3 numbers from 1–6 with duplicates allowed.

Related tools