Random Number Generator
Pick up to 1,000 random numbers between a minimum and maximum (both included), as whole numbers or with up to 6 decimal places, with or without repeats. Uses crypto.getRandomValues.
About the Random Number Generator
Enter a minimum and a maximum, choose how many numbers you want and press Generate. Both ends of the range can come up, so 1 to 6 behaves like a die and 1 to 100 really includes 100. With Decimals set above zero, the possible results are evenly spaced steps: 2 decimals between 0 and 1 means the 101 values 0.00, 0.01 … 1.00, each equally likely.
The numbers come from your browser's cryptographic random number generator, crypto.getRandomValues, not from Math.random. Raw random values that would make some results slightly more likely than others are discarded and drawn again, so every value in the range has the same chance. There is no seed option, and the same settings will not reproduce an earlier list.
Untick Allow duplicates to get numbers that are all different, like drawing numbered slips from a hat without putting them back. If you ask for more unique numbers than the range contains (say 10 different numbers from 1 to 5), you get an explanation instead of a wrong result. For more than one number, the sum, average, smallest and largest value are shown below the list.
Examples: pick which of 32 students answers next, choose 20 random row numbers out of 5,000 to spot-check a spreadsheet, roll dice for a board game, or pick a random page in a book. For random text instead of numbers, try the Random String Generator, and to work with the results as percentages, use the Percentage Calculator.
How to use the Random Number Generator
- 1
Set the range
Type the Minimum and Maximum. Negative numbers and decimals are allowed; both limits are included.
- 2
Choose count and decimals
Enter how many numbers you want (up to 1,000) and the number of Decimals, from 0 for whole numbers up to 6.
- 3
Decide on repeats
Leave Allow duplicates ticked for independent draws such as dice, or untick it for numbers that are all different.
- 4
Generate and copy
Press Generate. Click Copy to copy the list as comma-separated values, ready to paste into a spreadsheet or message.
What it can do
Inclusive range
Both the minimum and the maximum can be picked.
Unbiased cryptographic randomness
Uses crypto.getRandomValues with rejection sampling, so every possible value is equally likely.
Unique mode
Samples without replacement and tells you if the range is too small for the count you asked for.
Whole or decimal numbers
0 to 6 decimal places, with all results shown to the same number of decimals.
Quick statistics
Sum, average, minimum and maximum of the generated list.
Limitations
- At most 1,000 numbers per click and 6 decimal places.
- Results are listed in the order they were drawn; sort them in a spreadsheet if you need them in order.
- No seed: you cannot reproduce the same sequence later, so copy the list if you need a record of it.
- Very large ranges are limited by JavaScript's safe integer range (about 9 × 10^15 possible steps); beyond that you get an error message.
Privacy
Numbers are generated in your browser, and your settings and results are not sent to FlexyPdf's servers.
Frequently asked questions
Can the maximum value be picked?
Yes. The range includes both ends, so with Minimum 1 and Maximum 10 every whole number from 1 to 10, including 10, has the same 1-in-10 chance.
Does it use Math.random?
No. It uses crypto.getRandomValues from the Web Crypto API and rejects values that would introduce bias, so every possible result is equally likely.
How do I get numbers without repeats?
Untick Allow duplicates. The tool then draws without replacement, so each value appears at most once. The count cannot be larger than the number of values in the range.
How do decimals work?
With 1 decimal between 0 and 2, the possible results are 0.0, 0.1, 0.2 … 2.0, which is 21 values with equal chances. More decimals give finer steps.
Can I get the same numbers again tomorrow?
No. There is no seed setting, and every draw is independent, so copy or screenshot any list you need to keep.
Ratings & Reviews
Rate Random Number Generator
Help others by sharing your experience. Your rating is shown without your name.
More Generators
View all →Random String Generator
Generate up to 100 random strings from letters, digits, hex or your own characters
QR Code Generator
Turn a link or any text into a QR code and save it as PNG or SVG
Barcode Generator
Make Code 128, EAN-13, EAN-8, UPC-A, Code 39 and ITF-14 barcodes
Password Generator
Create strong random passwords from 4 to 64 characters in your browser