Random Number Generator

Generate truly random numbers, dice rolls, coin flips, lists, UUIDs, and item pickers — all in your browser.

Random Number Generator

Generate a cryptographically secure random number between any two values using the Web Crypto API.

Minimum
Maximum
Type
Quick ranges:
Press Space or Enter to generate
Recent history (click to copy):
Uses crypto.getRandomValues() — a cryptographically secure pseudo-random number generator (CSPRNG) built into your browser. Far more unpredictable than Math.random().

True Randomness vs Pseudo-Randomness

Most programming languages use a pseudo-random number generator (PRNG) like Math.random(), which produces numbers that look random but are deterministic — given the same seed, you'll always get the same sequence. This tool uses the browser's crypto.getRandomValues() API, which is a cryptographically secure PRNG (CSPRNG) seeded from true entropy sources like hardware noise, timing variations, and OS-level randomness. This makes it suitable for security-sensitive applications like key generation and token creation.

UUID v4 Explained

A UUID (Universally Unique Identifier) v4 is a 128-bit number formatted as xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, where the 4 indicates version 4 (random) and y is one of 8, 9, a, or b (the variant bits). With 122 bits of randomness, the chance of collision is astronomically small — you could generate 1 billion UUIDs per second for 85 years before expecting a 50% chance of a single collision.

Common Uses for Random Numbers