Random number generator
Set a range, press Generate and a random number appears in large type. Switch to Dice, Coin or List for rolls, flips and name draws.
What you type stays in your browser
In short
Type the lowest and highest number you want in Min and Max, choose how many numbers to draw, and press Generate. Every whole number in the range has exactly the same chance. Turn on No repeats to draw distinct numbers, as in a raffle or a lottery.
How to generate a random number
- Type the smallest allowed number in Min and the largest in Max. Both ends are included, and negative numbers work.
- Set How many if you need more than one number; switch on No repeats for distinct numbers and Sort from low to high for a tidy list.
- Press Generate, or press Enter in any field. The result appears in the large box and is added to Previous results.
- Press Copy result to paste the draw, with its range, into a chat or a document.
How the numbers are chosen
Many simple generators use Math.random, a fast pseudo-random function meant for games and animations, and then scale its output with a multiplication. That works for casual use but is not designed to be unpredictable, and naive scaling can make some numbers slightly more likely than others.
This tool draws from crypto.getRandomValues, the browser's cryptographically secure random source, which the operating system seeds from hardware noise. It then maps the random bits to your range with rejection sampling: values that would cause an uneven split are thrown away and drawn again. The result is that every number from Min to Max is exactly equally likely, whether the range is 1 to 6 or one to a quadrillion.
Frequently asked questions
Is this random number generator truly random?
It uses your browser's cryptographically secure random generator, which is seeded by the operating system from unpredictable hardware events. That is the same quality used for encryption keys, and nobody, including this site, can predict or influence the next number.
Are Min and Max included in the results?
Yes. With Min 1 and Max 10, the generator can return 1, 10 and every whole number in between, each with a chance of exactly one in ten.
How do I generate several numbers without duplicates?
Set How many to the number of draws you need and switch on No repeats. The generator then picks distinct numbers, like drawing balls from a drum without putting them back. If you ask for more numbers than the range contains, it tells you how many are available.
Can I generate decimal or negative numbers?
Negative whole numbers work: type -50 in Min, for example. Decimals are not supported, but you can scale: draw from 0 to 1000 and divide by 100 to get two decimal places.
What is the largest range I can use?
Min and Max can each be anywhere from minus one quadrillion to plus one quadrillion. Up to 1,000 numbers can be drawn at once, with or without repeats, even from the widest range.
Can I use it for a giveaway or a raffle?
Yes. Number the entries, set Min to 1 and Max to the last entry number, and press Generate. For names, switch to List mode and paste them one per line. Share your screen or record it, and copy the result for a transparent draw.
Are my numbers saved anywhere?
No. Previous results exist only in this tab and disappear when you close or reload it. Nothing is sent to a server.
Four modes in one tool
Switch at the top of the tool; each mode keeps the same large result box and Copy result button.
- Numbers: any range, one or many, with or without repeats. Quick presets: 1 to 10 and 1 to 100.
- Dice: one to ten dice with 4, 6, 8, 10, 12, 20 or 100 sides and the total. See the dice roller.
- Coin: flip one coin or up to 100 and keep a running tally. See coin flip.
- List: paste names or items and pick one or several winners. See the random name picker.
Everyday uses
Teachers use random numbers to call on students or form groups, game hosts to decide who goes first, researchers to assign participants to groups, and friends to settle who pays for lunch. Because the result is large and easy to read, it works well on a projector or a shared screen.
How your files stay private
This tool runs with JavaScript inside your browser tab. What you type, the settings you choose and the results stay in the page's memory and disappear when you close it. Nothing is sent to a server; a few display settings may be remembered in your own browser.
Presets
Related tools
- Password generator Strong random passwords, passphrases and PINs, generated in your browser and never sent.
- Online timer Countdown timer with a loud alarm, full screen mode and a lap stopwatch. Exact in background tabs.
- QR code generator Make free static QR codes for links, Wi-Fi, contacts and text. PNG or SVG, never expires.
- Word counter Count words, characters, sentences and reading time live as you type or paste.
- Case converter Change text to upper, lower, title, sentence, camel, snake or kebab case in one click.
Guides
Last updated Nov 20, 2026