Random Number Generator
Generate one or many random integers within any range, with an option for unique-only results and cryptographically strong randomness.
More Math Tools
Results will appear here.
Uses the browser's cryptographic RNG (crypto.getRandomValues) for uniform, unbiased results.
How to Use Random Number Generator
Set a Min and Max value, choose how many numbers you want (up to 50), and optionally check 'Unique values only' to avoid repeats. Press Generate to produce the numbers, shown as a row of chips. If you ask for more unique values than the range allows, a hint tells you the maximum possible instead of generating a broken result.
About Random Number Generator
Details & Tips
Frequently Asked Questions
How random are these numbers really?
What does "Unique values only" do?
What happens if I ask for more unique values than the range allows?
What is the maximum Count I can request?
Can Min and Max be negative?
Why not just use a simple Math.random()-style generator?
What is "modulo bias" and why does it matter?
Can I use this to simulate dice rolls?
Does each Generate press give a completely new result?
Can I generate the same number twice if uniqueness isn't checked?
Is this suitable for a real raffle or giveaway?
Why do I see results as chips instead of a list?
Part of These Collections
Also Available As
random number picker, number generator, raffle picker, random integer generator, lottery number generator, dice roller
Explore More Tools
View all toolsFound a Problem?
Let us know if something with Random Number Generator isn't working as expected.
Thanks — we'll take a look.