Random Number Generator
One tool for every kind of random draw: numbers in a range, dice in standard notation, coin flips with a running tally, winners pulled from a pasted list, shuffled orders and balanced teams. Every result comes from your browser’s cryptographic random source, and a history is kept so any draw can be checked afterwards.
How to use Random Number Generator
- Choose a mode: numbers, dice, coin, pick from a list, shuffle or teams.
- Set the range, the dice notation (for example 3d6+2), or paste your list of names one per line.
- Press Generate — or just tap the space bar — to draw. Turn off duplicates when you need unique results.
- Copy or download the result, and scroll the history panel to review recent draws.
About Random Number Generator
Most online random pickers call Math.random(), which is a fast non-cryptographic generator whose entire internal state can be recovered from a handful of outputs. That is fine for a particle effect and questionable for a prize draw. Everything here is seeded from crypto.getRandomValues() instead, and — just as importantly — the mapping from random bytes into your range uses rejection sampling. Taking byte % 100 to get a number from 1 to 100 quietly favours the low end, because 256 is not a multiple of 100; discarding out-of-range draws removes that skew entirely.
The six modes cover what people actually reach for. Number mode handles ranges of any size, with or without duplicates and optionally sorted. The dice roller parses standard notation like 3d6+2 and shows every die face, which matters at a table where the total alone is not the point. Coin mode keeps a running heads-and-tails tally so you can watch the ratio converge on 50/50 over a few hundred flips — a small but genuinely instructive demonstration of the law of large numbers.
For giveaways and classrooms, list mode takes a pasted list, ignores blank lines and optionally deduplicates it, then reveals winners one at a time with a short suspense animation. The shuffler returns the whole list in a new order, and the team splitter deals a shuffled list round-robin into balanced groups by team count or by team size. Every draw is appended to a history panel with a timestamp, so a result can be checked after the fact rather than taken on trust.
Frequently asked questions
Is this random number generator actually random?
It uses crypto.getRandomValues(), the browser’s cryptographically secure generator, rather than Math.random(). Numbers are mapped into your range with rejection sampling, so every value is exactly equally likely — no modulo bias making the low end of the range slightly more common, which is a real flaw in a surprising number of online pickers.
Is it fair enough for a giveaway or prize draw?
The draw itself is uniform and unbiased, and the history panel records every result so you can screenshot it as evidence. What it cannot do is prove to a third party that you did not re-roll, so for high-value prizes pair it with a live stream or a witness — the same caveat applies to every browser-based picker.
What dice notation is supported?
Standard RPG notation: 3d6 for three six-sided dice, 2d20+5 for a modifier, 4d8-2, and multiple groups such as 2d6+1d4+3. Each individual die is shown alongside the total, so you can see the roll rather than just the outcome.
Can I pick multiple winners without repeats?
Yes. In list mode, set how many winners you want and every draw is unique — it uses a partial Fisher–Yates shuffle, so no name can be drawn twice. The same applies to number mode with duplicates turned off.
How does the team splitter balance teams?
It shuffles the names first, then deals them round-robin into the requested number of teams, which keeps team sizes within one member of each other. You can instead specify a team size and let the number of teams follow from your list length.
Does it work offline and on a phone?
Yes to both. Everything runs in the page, so once it has loaded no connection is needed, and the layout is designed for one-handed use with a large draw button.
Related tools
- Password Generator — Strong passwords & passphrases
- QR Code Generator — Free QR codes as PNG or SVG
- UUID Generator — UUID v4 & v7, ULID and NanoID
- Color Palette Generator — Harmonies with WCAG contrast checks
- Merge PDF — Combine multiple PDFs into one
- Split PDF — Pull out pages or split into files