Random Number Generator & List Picker.
Generate random integers in any range — unique or with repeats, sorted or not — or sample lines from a list.
Runs in your browserAbout Random Number Generator & List Picker
This random number generator returns whole numbers between a minimum and a maximum you choose. Ask for one value or up to 10,000, decide whether repeats are allowed, and optionally sort the output — for example six unique numbers from 1 to 49 for a lottery-style draw, twenty rolls of a die from 1 to 6 with repeats, or a sample of 500 row IDs out of 1,000,000 for a data audit. Ranges may include negative numbers and can be as wide as 2^48 values, so it also works for test seeds, port numbers or random offsets. The numbers come from your browser's cryptographic random generator through rejection sampling: a raw value is used only when it falls inside an exact multiple of the range size, which removes the small bias that Math.random() * n or a modulo shortcut would add. Unique draws use a partial Fisher–Yates shuffle, so every combination is equally likely and no number appears twice. Two secondary modes reuse the same engine for lines of text: sample a few lines from a list, or put the whole list in random order. The output is plain text, one value per line, ready for a spreadsheet, SQL IN clause or test fixture. Typical mistakes: requesting more unique numbers than the range contains, forgetting that both ends of the range are included, and sorting a result whose order was the point. For a visual spinning wheel, use the random picker wheel instead. Nothing leaves your browser.
How to Use
- Enter the minimum and maximum (both included) and how many numbers you need.
- Choose whether repeats are allowed and whether to sort the result.
- Press Run for a new draw and copy the numbers.
Frequently Asked Questions
Are both the minimum and the maximum included?
Yes. A range of 1 to 6 can return 1, 2, 3, 4, 5 or 6, each with the same probability.
How are unique numbers generated without bias?
Each value is drawn with rejection sampling from crypto.getRandomValues, and unique draws use a partial Fisher–Yates shuffle, so every combination of numbers is equally likely.
How large can the range be?
Up to 2^48 (about 281 trillion) possible values, including negative numbers, and up to 10,000 numbers per draw.
Is anything sent to a server?
No. The numbers are generated in your browser and nothing you enter is uploaded.
Related Tools
Spin a wheel or pick random names from a list, shuffle the order or split people into groups.
Generate random strings, API keys and tokens with custom length, character set, hex or Base64 format and prefix.
Generate NanoID, CUID2, KSUID and Snowflake IDs in bulk with custom size, alphabet and epoch.
Generate strong, memorable diceware passphrases from the EFF large wordlist, with dice rolls and entropy.
Sort lines alphabetically or naturally and remove duplicates.
Generate UUID v4, UUID v7, and ULID identifiers.