Random Number 1 to 100
This page opens with the range already set to 1 and 100, so the only thing left to do is press Draw a number. Nothing is drawn while the page loads: the number appears when you ask for it, and every value from 1 to 100 has exactly the same chance, because the draw comes from your browser's cryptographic generator and is mapped onto the range by rejection rather than by a remainder.
Independent draws · 1 to 100
Roll dice
Standard notation: 2d6, d20, 3d6+2.
Common questions
- Are both 1 and 100 possible?
- Yes. The range is inclusive at both ends, so 1 and 100 are each as likely as 50. If you want 1 to 99 instead, type 99 in the To field.
- Is it really random?
- The values come from crypto.getRandomValues, the browser's own cryptographic source, not from Math.random. The 32-bit value it returns is then mapped onto 1 to 100 by rejection sampling: draws above the last whole multiple of 100 are thrown away and redrawn. Taking a remainder instead would hand the first 96 numbers one extra chance each, which is small but real, and this tool claims there is no tilt at all.
- Why is there no number on screen when the page opens?
- Because a number drawn while the page was still loading would be a number nobody asked for, and it would have to be generated twice: once on our server and once in your browser. Those two draws would disagree. The range is set for you; the draw waits for the button.
- Can I draw several numbers at once, with no repeats?
- Yes. The How many control does 1, 5, 10 or 50, and the No repeats switch turns the draw into a lottery-style draw where no value can come up twice. Sorted puts them in order. Ask for more different numbers than the range holds and the tool says so rather than looping forever.
- Does this remember my settings?
- Your No repeats and Sorted switches are kept in your browser and come back on your next visit. The range on this page does not change: it is 1 to 100 by the page's own definition, and you can retype it any time.
Values come from your browser's cryptographic random source, not a seeded pseudo-random generator, and the range is sampled without modulo bias so every value is equally likely. Suitable for draws and testing; for cryptographic keys, use a purpose-built key generator.