Random
Random Number Generator
Draw whole numbers from an inclusive minimum and maximum, up to 500 at once. Repeats are kept. Reversed bounds are swapped. The draw stays on this page.
Generated numbers
No output yet. Range will use 1 to 100.
Output actions
Ready to copy output once your result appears.
Inclusive integers, up to 500
Random Number Generator prints whole numbers, one per line. Minimum starts at 1, Maximum starts at 100, and Count starts at 1. Count is limited to 500. If Minimum is greater than Maximum, the draw swaps them. Duplicates are allowed. The page does not print decimals, and it does not shuffle a list you already have.
How to draw numbers
- 1Set Minimum and Maximum. Decimals are cut toward zero when you press Generate. A non-numeric entry is treated as 0. The boxes themselves are not rewritten when the bounds swap.
- 2Set Count (1-500). Generate clamps that count: below 1 becomes 1, above 500 becomes 500, and a non-numeric count becomes 1. The clamped count is written back into the box.
- 3Press Generate. Generated numbers lists one integer per line. Copy output copies those lines. Press Generate again for a new draw. There is no download button.
What it is good for
- • A dice-style draw where every integer from the low bound through the high bound can appear.
- • A column of up to 500 integers, including repeated values.
- • Checking a reversed pair of bounds without doing the swap yourself.
Example
Input
Minimum 1, Maximum 6, Count 3
Output
4 1 6
4, 1, and 6 are one legal draw of three integers from 1 through 6. Generate will not repeat them. A repeated face, such as 6 twice, is also legal.
How a whole number is chosen
Generate reads the current Minimum and Maximum, cuts each with Math.trunc, and if the low value is above the high value it exchanges them. The span is high minus low plus 1, so both ends are included. A single 32-bit value from crypto.getRandomValues is divided by 2^32, and the integer is low plus the floor of that fraction times the span. Count tells how many independent draws to print. They are joined with newlines and nothing else. There is no header, no comma, and no index.
Equal bounds produce a column of that same integer, once per count. A span of 1 through 6 can repeat a face. The page never switches to sampling without replacement. If you already have the names and you want their order shuffled, that is the list shuffler, which reorders lines you paste. This page invents integers. It will not take the list 1 through 6 and permute it.
Minimum, maximum, and count
The three boxes are labeled Minimum, Maximum, and Count (1-500). Only Count is rewritten when Generate clamps it. Minimum and Maximum stay as typed even when the draw used them swapped or truncated. Type 10 in Minimum and 1 in Maximum, and a count of 5 still prints five integers from 1 through 10. The boxes continue to show 10 and 1. Type 3.9 and the draw uses 3. Type -1.2 and the draw uses -1, because truncation is toward zero, not toward the next lower integer.
A huge magnitude is still a JavaScript number. Past the safe integer range the bound you typed may already be imprecise before the draw starts. The page does not warn about that, and it does not switch to big-integer arithmetic. Count never exceeds 500 and never drops below 1 on a click. Editing Count to 0 leaves 0 in the box until Generate, which then stores 1 and prints one line.
Jobs for a batch of integers
Use a count of 1 when you need a single id suffix or a single die. Use a larger count when a spreadsheet needs a column of sample ages, scores, or ports inside a known span. Copy output after Generate is the lines you see, suitable to paste under a header you add yourself. The number formatter can add grouping separators afterward. This page will not insert thousands separators or currency symbols.
Letters, digits, and symbols in one token are the random string generator. It draws one string of a chosen length and does not accept a numeric minimum. A UUID is a different shape again. Nothing on this page sorts the column, drops duplicates, or forces each integer to appear once.
The hint line and a fresh visit
Before the first Generate, the panel reads No output yet. Range will use 1 to 100. when the boxes are still at their defaults, or the swapped-and-truncated bounds if you already edited them. That sentence is only the panel placeholder. Copy output still says there is nothing to copy, because the published result is an empty string until Generate runs. After a click, the panel and the copy buffer are the same newline-separated integers.
The boxes and the last column are component state for this visit. They are not written to local storage by this tool. A reload restores Minimum 1, Maximum 100, Count 1, and the hint sentence. The previous column is gone. There is no seed field, so you cannot ask for the same column twice. Two clicks with the same bounds are two draws.
Rules and limitations
Each output line is an integer from the inclusive low bound through the inclusive high bound. Bounds are truncated toward zero and swapped when Minimum is greater than Maximum. Count is clamped to 1 through 500 on Generate.
Duplicates are kept. Decimals are not printed. There is no uniqueness switch, no seed, no download, and no local-storage restore. The pre-click hint is not the copy buffer.
Common problems
If the numbers ignore the order you typed, Minimum was above Maximum and the draw swapped them. The boxes still show the typed order.
If you expected 500 distinct values, this page can repeat. It draws with replacement. Use a shuffle of a list you wrote when each line must appear once.
Frequently asked questions
Are the minimum and maximum included?
Yes. A span of 1 to 6 can print 1 and can print 6. Equal bounds print that integer on every line.
What happens if the minimum is larger?
Generate exchanges the truncated bounds for the draw and leaves the boxes as typed. Minimum 10 and Maximum 1 still produce integers from 1 through 10.
Can I get numbers with a fractional part?
No. Bounds are truncated toward zero, and each result is an integer. 3.9 is used as 3. The page has no decimal-places control.
Will the same count avoid repeats?
No. Each line is an independent draw. A die rolled three times may show the same face twice. The list shuffler is the tool that reorders existing lines without inventing new ones.
Is my input uploaded or saved?
This tool processes input in your browser and does not save its input or output to local storage. Copy and download are user actions. The site uses analytics for page and action metadata and may use ads and production error reporting; see the Privacy Policy for those services.
About this tool
Maintained by Toolbench. For large or deeply nested files, split the input into smaller batches and verify representative results before using them in an import or application. Report reproducible problems through Contact.
Next steps
Related tools
Continue the workflow with nearby tools for formatting, publishing, debugging, or follow-up checks.
Random String Generator
Generate one random string from letters, digits, and optional symbols.
Open Random String GeneratorList Shuffler
Shuffle lines with a Fisher-Yates pass from crypto.getRandomValues.
Open List ShufflerNumber Formatter
Format numbers with thousands separators, decimals, currency, and locales including en-US, de-DE, and sv-SE.
Open Number FormatterUUID Generator (v4, Bulk)
Generate up to 1,000 UUID v4 values, with uppercase, hyphen, and brace options.
Open UUID Generator (v4, Bulk)Trust
Policies, contact, and answers
Clear pages for how Toolbench works, what we collect, and how to reach us.