Generate random numbers in any range, whole or decimal, with no repeats.
Dice-like range
One number from 1 to 6
6Lottery draw
Six unique numbers from 1 to 49
49Percentage
A decimal between 0 and 100
100Enter the lowest and highest values. Both ends are included in the possible results.
One number or many, whole numbers or decimals, with or without duplicates.
Results appear immediately and copy as a list, ready to paste into a spreadsheet or message.
Numbers come from the browser’s secure random source, so results are not predictable from previous draws — which matters whenever the outcome decides something.
Rejection sampling ensures every number in the range is equally likely, rather than the low end being slightly favoured as naive implementations do.
Asking for more unique numbers than the range contains is caught immediately with an explanation, not an infinite loop.
Pick a minimum and maximum, choose how many numbers you want, and get results drawn from your browser’s cryptographic random source rather than a predictable pseudo-random one. Whole numbers or decimals, with an option to prevent duplicates when you are drawing raffle tickets or picking distinct lottery numbers. The tool checks that what you have asked for is possible — you cannot draw ten unique numbers from a range of five, and it says so rather than looping forever.
Keep going
Related pages in Everyday Utilities, plus what others are using right now.
More everyday utilities that pair well with this one.
Roll D4 to D100 dice, several at once, with modifiers and history.
Flip a virtual coin for a fair fifty-fifty decision, with running totals.
Pick a random winner from a list, or shuffle the whole list fairly.
Create strong random passwords with full control over length and characters.
Generate thousands of UUIDs at once and export them as TXT, CSV or JSON.
Convert between length, weight, temperature, volume, speed, data and more.
Format, validate and minify JSON, with errors that point to the exact line.
Work out any percentage — of a number, as a share, or as a change.
Count words, characters, sentences and paragraphs as you type.
Count characters with and without spaces, against the limits that matter.
Find the mean, median, mode and range of a list of numbers, with the working shown.
See how savings grow with compounding, including regular contributions.
Sample and population standard deviation and variance, both shown, with the working.
Turn a logo into favicon.ico, the PNG sizes a site needs, and the HTML to declare them.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Escape text for HTML, or turn entities back into readable characters.