Generate Random Numbers, Roll Dice & Flip Coins
Pick random numbers in a range, roll d4 to d100 dice, or flip a coin using your browser secure random source.
- No upload
- No signup
- Free
Loading tool…
Your file stays in this browser. Nothing is uploaded.
Loading tool…
Your file stays in this browser. Nothing is uploaded.
How Random Number & Dice Generator works
Browser Toolset Random Generator picks random integers in a range you choose, rolls polyhedral dice (d4, d6, d8, d12, d20, d100), and flips a virtual coin using the browser Web Crypto API (crypto.getRandomValues), with unbiased rejection sampling so every outcome is equally likely.
How to use this tool
- Set your minimum and maximum values (e.g., 1 to 100) in the Number Range card.
- Click "Pick Number" to draw a random integer in that range.
- Click "Flip Coin" for Heads or Tails.
- Click a die button (d4, d6, d8, d12, d20, d100) or "Roll d6" to roll dice.
Common uses
- Tabletop gamers and Dungeons & Dragons players rolling D20 checks.
- Teachers randomly selecting students for classroom questions.
- Giveaway organizers drawing fair winner ticket numbers.
- Settling everyday casual decisions with an unbiased coin toss.
Frequently asked questions
Is this random generator truly random?
It uses crypto.getRandomValues(), the browser cryptographically secure random number generator (CSPRNG), with rejection sampling to avoid modulo bias. It suits games and everyday draws, but it is not an audited or certified system for regulated lotteries.
Can I generate unique non-repeating random numbers?
No. Each pick is independent, so numbers can repeat. There is no no-duplicates mode, and the tool produces one number per click, so for a unique set you would need to discard repeats yourself.
Are generated numbers stored or recorded anywhere?
No. The numbers are generated in your browser and are not uploaded or sent to a server. The tool keeps only the latest result on screen and has no roll history, so a new pick replaces the old one.
What dice types are supported?
The dice roller has buttons for d4, d6, d8, d12, d20 and d100, and each click rolls one die. A separate Roll d6 button is also provided. Rolls use the same unbiased browser random generator as the number picker.
Can I flip a coin for 50/50 decisions?
Yes. Press Flip Coin to get Heads or Tails. The result comes from the same browser Web Crypto generator, so each side has an equal chance. There is no flip history, only the latest result is shown.
Details and limits
Fair randomness is essential for games, drawings, and decision-making. Unlike Math.random(), which is not designed for security, our Random Generator draws from the browser's cryptographic random number generator and removes modulo bias, so each outcome is statistically fair. It handles one number, coin flip or die roll at a time.
Where the random numbers come from
Every draw uses crypto.getRandomValues, the random source built into your browser, and not Math.random. A pick is made with rejection sampling: draws that would favour some numbers over others are thrown away and repeated, so every value in the range has the same chance. Nothing is sent anywhere and no history is kept.
The page opens showing a dash in each card until you make a first draw. There are three cards: a number range, a coin and a set of dice.
Features and limits
- Number Range returns a whole number from min to max, both included. Typed values are read as whole numbers, so a decimal part is dropped and an empty box becomes 0. They are held between -1,000,000,000 and 1,000,000,000.
- If min is larger than max the tool swaps them instead of showing an error. If both are equal, that number is the only possible result. One number comes out per click.
- Dice: d4, d6, d8, d12, d20 and d100, one die per click, with d100 giving 1 to 100. A separate button rolls a d6.
- The coin gives Heads or Tails with equal chance.
- Each draw is independent, so repeats are possible. There is no way to draw several numbers at once, avoid duplicates, shuffle a list or pick from names.
- There is no animation. The new result replaces the old one, so if you draw the same value twice it can look as if nothing happened.
Tips and good practice
To draw a winner from a list, number the entries 1 to N and use Number Range with those limits. Keep your own record of the draw, because the tool has no log, and screenshot the result if others need to see it. Official lotteries and regulated draws have their own rules and audit requirements, which this page does not provide.
To pick several different numbers, draw again and skip any repeats by hand.
For passwords use the Secure Password Generator, which is built for that job with length and character options. For unique identifiers use the UUID / GUID Generator (v4).