Free Tool
Random Number Generator
Generate truly random numbers in any range or roll any RPG dice. Uses cryptographically secure randomness via the Web Crypto API — not a simple formula. No server calls, no logs.
What Makes a Random Number Generator "True Random"?
Most programming languages include a Math.random() function that produces pseudo-random numbers using a deterministic algorithm seeded by the current time. These are fine for games and simulations, but they are not cryptographically secure — if you know the seed, you can predict the sequence.
This generator uses crypto.getRandomValues from the Web Crypto API, which draws entropy from the operating system. The result is genuinely unpredictable and meets the standards required for cryptographic applications, token generation, and security keys — not just games.
Common Uses for Random Numbers
- Lotteries and raffles: Pick winners fairly without bias. Enable unique mode so no number repeats.
- Statistics and research: Random sampling, Monte Carlo simulations, and A/B test group assignment.
- Classroom use: Pick student names, form random groups, or assign random practice problems.
- Games and RPGs: The dice roller covers d4 through d100, with totals and stats for multi-dice rolls.
- Decision making: Break ties, randomize choices, or add a fun element to any decision with the flip-of-a-coin equivalent.
- Password and PIN generation: Generate random numeric PINs or combine multiple rolls for stronger passphrases.
Understanding the Dice Roller
The dice roller uses the same secure random source as the number range generator. Standard tabletop RPG dice are included — d4 (tetrahedron), d6 (cube), d8 (octahedron), d10 (pentagonal trapezohedron), d12 (dodecahedron), d20 (icosahedron), and d100 (percentile dice). Roll multiple dice at once to see the total alongside min, max, and average — useful for RPG combat, stat generation, and probability exercises.
For classroom use, the graph paper generator can create probability grids, and the percentage calculator handles frequency and probability conversions.