Pick an Integer
Randomly select an integer from a list of integers. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Press "Pick again" to draw.
What you paste never leaves this tab
Pick an Integer is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Pick an Integer
- 1. Paste your list of integers. Enter the pool of integers, separated by commas, spaces or new lines, or leave it empty to pick from 1 to 10. Press Pick again for a new draw; recent picks are listed below.
- 2. Choose how many to pick. Set How many to pick to decide the sample size, and toggle Allow the same integer twice to control whether the same integer can be selected more than once. Raffle mode keeps picked integers out of later draws until every one has been drawn.
- 3. Copy the picked results. Copy the randomly selected integers from the output pane and use them wherever a fair, random draw from your list is needed.
When to use Pick an Integer
Pick an Integer randomly selects one or more values from a list you provide, with an option to allow repeats or force unique picks. Use it whenever you need a fair random draw from a specific set of numbers rather than an arbitrary generated range.
- Running a raffle from ticket numbers. You have a list of raffle ticket numbers and need to fairly draw one or more winners without repetition, ensuring nobody is picked twice.
- Randomly sampling a dataset for review. A dataset has a list of record IDs and you want to randomly select a handful for a manual quality check rather than reviewing every record.
- Assigning a random group order. A list of team numbers needs to be shuffled into a random presentation order, with repetitions allowed if the same team should be able to present more than once.
- Testing random-selection logic. You wrote code that samples values from a list and want a quick way to confirm random selection behaves as expected, both with and without repetition.
Examples
Pick one integer
Input
42
One possible result
42
Pick two lucky integers
Input
3, 7, 11, 21, 33, 42
One possible result
7 33
About the Pick an Integer tool
Pick an Integer runs as plain JavaScript in your browser tab, with no server behind it. Randomly select an integer from a list of integers. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's Integer Tools section, 133 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 5 settings, including How many to pick, From (empty list), To (empty list) and Allow the same integer twice, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Pick an Integer free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.