Random Number Generator
Generate cryptographically strong random integers in any range, roll dice, flip coins, or pick random items from a list.
Runs entirely in your browser.
Generate Random Numbers, Dice Rolls, and Coin Flips
Random Integers
Generated 5 numbers between 1 and 100.
Quick Random Tools
About Random Number Generation
This generator uses crypto.getRandomValues, the browser's cryptographically strong random source, instead of Math.random(). Cryptographic randomness comes from the operating system's entropy pool, making the output unpredictable and suitable for anything from games to picking giveaway winners.
Mapping random bits onto an arbitrary range is done with rejection sampling: random 32-bit values that would introduce bias (because the range does not divide evenly into 232) are discarded and redrawn. This guarantees every number in your range has exactly the same probability - the naive modulo approach would slightly favor smaller numbers.
When duplicates are disallowed, the tool draws unique values, which is the same as dealing cards from a shuffled deck. That is also how the list picker works: picking 3 names from 10 gives every name an equal chance, with no repeats. All generation happens locally in your browser.