Random Generator: Dice, Coin Flips, Numbers and Picking a Name

  • Free
  • No sign-up
  • Runs in your browser
  • Version 1.0.1
  • Last updated 2026-10-25
Report a problem

Roll dice, flip coins, draw a random number from a range, or pick one or more names at random from a list you type in. Everything here uses your browser's own secure source of randomness, the same one used for passwords and other security-sensitive values.

Everything you enter is processed in your browser and is never sent to a server.

How to use

  1. Choose Dice, Coin flip, Number or Pick from a list at the top.
  2. For dice, choose how many sides and how many dice, then press Roll; the total is shown when rolling more than one.
  3. For a number, set the range and how many to draw, tick No repeats if each should be different, then press Draw.
  4. For picking from a list, type one item per line (such as names for choosing who goes first), set how many to pick, and press Pick.

Examples

2d6 (two six-sided dice)
→ 4 and 1, total 5
Changes every time you press Roll.
A number from 1 to 45, 6 drawn, no repeats
→ 6 different numbers between 1 and 45
The shape of a lottery-style draw; it decides nothing about any real lottery.
A list of 4 names, pick 1
→ One name, chosen at random
Useful for picking who goes first or who gets a task.

How it works

Every random choice here reduces to one function: a uniformly random whole number from 0 up to, but not including, some limit, read from crypto.getRandomValues and kept only when it falls below the largest multiple of the limit that fits in the random values drawn, so that no remainder is more likely than another (the same approach the password generator uses). Dice, coin flips and a plain random number use it directly; drawing without repeats uses a partial Fisher-Yates shuffle driven by it, which picks a sample of a given size without ever listing out a very large range.

The arithmetic for every mode, including the without-repeats case with a sequence of fixed draws standing in for randomness, is covered by tests.

Sources

Frequently asked questions

How random is it?
Each draw comes from the Web Crypto API's getRandomValues, the same cryptographically secure source browsers use for things like password and key generation, with values outside an even range thrown away so no number is more likely than another (no modulo bias).
Can I roll unusual dice, like a d100?
Yes: d4, d6, d8, d10, d12, d20 and d100 are offered, up to 20 dice at once.
What does No repeats do for numbers or a list?
It draws without putting a value back, so the same number or item cannot come up twice in one draw. It needs the range or the list to hold at least as many values as you are drawing.
Can I use the list picker for a raffle or a giveaway?
It is built for picking at random, and each person typed in has an equal chance, but think about whether a page you don't control recording the result is enough for your giveaway's rules; some giveaways require a record you can show was not tampered with.
Is anything sent to a server?
No. Every draw happens in your browser.
Version history
  • 1.0.1 — Clarifies the search title with the tool's main task and whether it is free or runs online.
  • 1.0.0 — First release.

Last updated: