Random Number Generator
Draw one or many whole numbers between any two values you set. Both the minimum and maximum are included, you decide how many to pull, and a single toggle guarantees no repeats when you need a clean draw. Every number comes from your device's cryptographic randomness, and nothing leaves the page.
How to generate random numbers
- Type the lowest value into the Minimum box. Whole numbers only.
- Type the highest value into the Maximum box. This value can be drawn too.
- Set How many to the number of results you want.
- Tick Unique (no repeats) if every result must be different.
- Press Generate to draw the numbers, then use Copy to grab the comma separated list.
Examples
Roll a single six-sided die
min 1, max 6, count 1, unique off
One value from 1 to 6, for example 4
Draw 6 unique lottery-style numbers
min 1, max 49, count 6, unique on
Six distinct values, for example 7, 12, 23, 31, 38, 44
Pick 3 numbers that may repeat
min 1, max 10, count 3, unique off
Three values that can repeat, for example 4, 4, 9
Frequently asked questions
Are the numbers truly random?
They are cryptographically secure. The generator calls your browser's crypto.getRandomValues and uses rejection sampling, so every value in the range is equally likely and there is no modulo bias toward the low end.
Are both the minimum and maximum included?
Yes. The range is inclusive on both ends, so a setting of 1 to 6 can return 1, 6, or anything in between. A range of 0 to 0 is valid and always returns 0.
Can I generate negative numbers?
Yes. Set the Minimum to a negative value, for example min minus 50 and max 50, and the draw spans the whole signed range. Only whole numbers are supported, so decimals are not produced.
How do I get numbers with no repeats?
Turn on Unique (no repeats). Each result is then drawn without replacement using a partial shuffle, so every number is distinct while the order stays random. This is ideal for raffles and seating draws.
Why can't I get more unique numbers than my range holds?
Unique results cannot exceed the count of integers in the range. To draw 10 unique numbers you need at least 10 values, so a range of 1 to 10 works but 1 to 9 does not. The tool shows a message when the count is too high.
Is there a limit on how many numbers I can generate?
There is no hard cap in the engine. Very large counts are limited only by your device memory and how long the browser takes to render the list. For everyday draws of a few dozen numbers it is instant.
Do the numbers change every time I click Generate?
Yes. Each press produces a fresh draw, so results are not seeded or repeatable. If you need the same sequence again, copy and save it, because there is no way to recover a past draw.
Can I use this for giveaways, contests and random picks?
Yes. Number your entries, set the range to match, choose how many winners you need, and turn on Unique so nobody is picked twice. The secure randomness makes the outcome hard to predict or game.
Do my numbers get sent to a server?
No. Generation runs entirely in your browser, so nothing is uploaded and the results stay private to you. You can even use the tool offline once the page has loaded.
Learn more
- How random number generators work
How computers produce randomness, why crypto.getRandomValues beats Math.random, and how rejection sampling removes bias from a range.
Related tools
UUID Generator
Generate random version 4 UUIDs online. Create one or thousands at once, with uppercase or no-hyphen options, then copy them. Free and private.
Password Generator
Generate strong, random passwords online. Choose length, letters, digits, symbols and skip look-alike characters. Created in your browser, never stored.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
ASCII Table
Full ASCII table for all 128 codes with decimal, hex, octal and binary values, character names and descriptions. Search by code, hex or character.
Aspect Ratio Box Generator
Generate CSS for a responsive aspect-ratio container. Use the modern aspect-ratio property or the padding-top fallback, then copy the ready code.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.