Random Number Generator

Whole random numbers in a range you choose, with or without repeats.

How it works

Choose the range and how many numbers you want. Each number is picked with the secure random generator built into your browser, and the tool avoids the small bias that simple methods have, so every number in the range is equally likely. Turn on "No repeats" to draw without replacement, like a lottery.

Worked example

From 1 to 6, 5 numbers: 4, 1, 6, 6, 2 (repeats are allowed). With No repeats and 5 numbers from 1 to 49, you get five different ones.

Good to know

Common questions

Is it truly random?
It uses the browser's cryptographic random source, which is far better than Math.random for fairness.
Can I pick negative numbers?
Yes, set the From value below zero.
How many numbers can I draw?
Up to 1000 at a time.

More in Utilities.