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

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.

Frequently Asked Questions

Yes. It uses the Web Crypto API (crypto.getRandomValues), which provides cryptographically secure random numbers — the same quality used for security keys and encryption, not a simple pseudo-random formula.
When enabled, each generated number will appear at most once in the results — like drawing from a shuffled deck without replacing each card. Useful for lottery picks, raffle draws, and random sampling without replacement.
The dice roller supports d4, d6, d8, d10, d12, d20, and d100 (percentile dice) — all standard tabletop RPG dice. You can roll multiple dice of the same type and see the total, average, min, and max.
Up to 1,000 numbers in a single generation. For unique mode, the count cannot exceed the size of your range (e.g., max 10 unique numbers from 1–10).
Yes. Set your range to match the lottery range (e.g., 1–49), enable "unique numbers only," set the count to match your draw (e.g., 6), and generate. Each result is cryptographically random and non-repeating.
All generation happens in your browser using the built-in Web Crypto API. No numbers are sent to any server, and no log of your results is kept anywhere.