Random Number Generator
Local only — nothing is uploaded unless you save or share it.
A random number generator for any range, in your browser.
- Set the lowest and highest number you want
- Choose how many numbers, and whether repeats are allowed
- Click Generate for a fresh draw
Save this tool
Keep Random Number Generator handy
Use your browser's Share menu, then “Add to Home Screen”.
About this tool
Most random number generators on the web use the scripting shortcut every language ships with, which is fast, predictable enough to be reconstructed, and biased towards the low end of whatever range you asked for. This one draws from your browser's cryptographic random source and discards draws that would skew the result, so every number in the range is genuinely equally likely. The difference does not matter when you are picking a number for fun, and it matters a great deal when you are drawing a winner. Set the lowest and highest number, choose how many you want, and decide whether repeats are allowed. Without repeats the draw becomes a selection rather than a series of independent rolls, which is what you want for lottery numbers, prize draws, or picking rows from a spreadsheet. Sorting only changes the order they are shown in; it does not make the draw any less random. Everything runs locally, so nothing you draw is transmitted, logged, or stored.
Frequently asked questions
Is this actually random?
It uses the Web Crypto API, the same random source browsers use for encryption keys, rather than the ordinary scripting random function. It also throws away draws that would make low numbers slightly more likely, which is a bias most simple generators have without knowing it.
Is this RNG actually random?
It draws from the browser's cryptographic source, not the ordinary one, so the numbers are unpredictable rather than merely spread out. That matters whenever the result decides something — a prize draw, a sample, a test case — and it costs nothing over the fast alternative at these quantities.
Are my numbers sent to a server?
No. Everything is generated in your browser, so nothing is transmitted and nothing is stored. You can disconnect from the internet after the page loads and it keeps working.
What does 'no repeats' do?
It turns the draw into a selection: each number can only come out once, like drawing balls from a bag without putting them back. Use it for lottery numbers or prize draws. With repeats allowed, each number is an independent roll, so the same value can appear more than once.
Can I draw more numbers than the range holds?
Not without repeats. If you ask for ten different numbers between 1 and 5, there are only five to give, so the tool says so instead of quietly returning fewer than you asked for.
Can I use this for a prize draw?
Yes, and the no-repeats option is the one you want. If you need to pick names rather than numbers, the random picker takes a pasted list and draws from that instead.
Help improve this tool
Found a bug, want a change, or need a tool we don't have?
You have an unsent draft.
Thanks — that's with us. You'll find the reply in your inbox.Go to my messages