
Web Scripts & Software
DEV3 Random Number Generator, Dice & Coin Flip — Source Code (React + Tailwind)
from $20$29
Loading…
Everyday tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
1 to 10,000
0 for whole numbers
Numbers or ranges: 7, 13, 20-25
Same seed, same draw on every press. For demos only, not for real prize draws.
Numbers come from crypto.getRandomValues, the browser cryptographic generator. Ranges that do not divide 2^32 evenly are handled by rejection sampling: any draw from the uneven top slice is discarded and redrawn, so every value is equally likely (no modulo bias).
Press Generate or Space.
Need Random Number Generator, Dice & Coin Flip as a full mobile or web app? We build it in about a week. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The random number generator, dice & coin flip stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Get the full app behind this tool. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $20$29

Web Scripts & Software Mobile app
from $69$99

Enterprise SaaS Starters
from $69$99

Enterprise SaaS Starters
from $69$99

Web Scripts & Software
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99
This page covers the three most common random tasks in one place: numbers in a range, dice rolls and coin flips. Everything runs in your browser using the cryptographic random generator, so results are unbiased and nothing is sent anywhere.
7, 13, 20-25.For raffles and giveaways, choose no repeats, set the count to the number of winners and use the big display mode in a classroom or stream.
Type any notation such as 3d6+2, 4d6kh3 for ability scores, 2d20kl1 for disadvantage, or 1d6! for exploding dice. The result shows every die, which ones were kept, and the total. For plain dice the chart shows the exact probability of each total, so you can see why 7 is the most common roll of two six-sided dice.
Flip one coin or up to a thousand. The tool counts heads and tails, the longest streak and the current streak. Streaks look suspicious but are normal in random data.
Pick a game format to get a ticket with the right count of numbers and bonus balls, plus the jackpot odds. Presets do not change your chances.
The tool uses rejection sampling to avoid modulo bias. A seed option gives repeatable results for demonstrations and teaching only.
They come from crypto.getRandomValues, the cryptographically secure generator built into your browser, which is seeded by the operating system. That is much stronger than Math.random and is suitable for giveaways, games and decisions. Repeatable seeded mode is for demonstrations only.
Taking a random 32-bit number modulo a range that does not divide evenly makes some results slightly more likely. This tool uses rejection sampling: draws in the uneven top slice are discarded and drawn again, so every value in your range has exactly the same probability.
NdM for N dice with M sides (3d6, d20, d% for percentile, 4dF for fudge dice), modifiers like +2, several terms (2d8+1d4-1), keep highest or lowest (4d6kh3, 2d20kl1), drop (4d6dl1) and exploding dice with an exclamation mark (1d6!).
Switch on the no-repeat option and set the count. The tool then draws without replacement, using a partial shuffle, so no number appears twice. It warns you when you ask for more numbers than the range holds.
No. Every combination is equally likely, so a random pick has the same odds as any other. The presets only match the number format of popular games, and the odds shown are the jackpot odds for choosing correctly. Check your lottery rules, which can change.
Yes here, since each flip is an independent unbiased draw. Streaks of 5 or more in a row are normal in a few dozen flips, which is why the stats show your longest run. Real coins are very slightly biased toward the side that started up.