🧰 UtlKit

How to Use the Random Picker Tool: Inclusive-Range Draws and Trimmed List Picks, No-Repeat by Redraw, in the Browser

Two modes: draw numbers from an inclusive range, or pick items from a trimmed one-per-line list, with a count, an allow-repeats switch, and the ten last results kept on the page.

The Random Picker tool draws numbers from a range, or picks items from a one-per-line list, in the browser. Two mode buttons sit at the top: Random Number, the default, with a Min field pre-filled with 1 and a Max field pre-filled with 100, and Random List Item, with a text area whose placeholder is Alice, Bob, Charlie, Diana. Below them, a Count field (1 by default), an Allow repeats checkbox (off by default), and the Pick Random button. Pressing it prints the draws in a large Result line with a copy button underneath, and every pick also lands in a History list of the ten last results. Nothing is sent anywhere: the range math, the list split, and the draws all run on the device, and a reload of the page wipes the result and the history.

What the tool takes and what it gives

The inputs are the two mode buttons, the mode-specific fields, the Count, and the Allow repeats switch, and the only action is the Pick Random button, so nothing is computed live: the result changes only when you press it. The result block shows a small Result label, the draws in large text, and a copy button that copies exactly the result string. There is no clear button and no way to reset: the result stays on screen until the next successful pick overwrites it, and the history list, headed History, grows up to ten entries, newest first.

How number mode draws

The Min and Max fields are read as integers, so a decimal in either is read as its integer part: a Min of 1.9 is a Min of 1. The range is inclusive at both ends, and each draw is the floor of the range size times a random fraction, added to the minimum, which makes every integer in the range equally likely: over ten thousand draws from 1 to 10, each value landed between 970 and 1050 times. The range size is max minus min plus one, and each pick request draws Count draws, one per slot.

What no repeats does in each mode

With Allow repeats off, number mode first caps the request at the range size: asking for five draws from 1 to 3 draws three, because there are only three numbers. Each slot then draws, and if the drawn number was already drawn in this round it draws again, in a redraw that consumes no slot, so the result always has the full min of count and range size unique numbers; a range where min equals max, like 7 to 7, returns a single 7 no matter how many you ask for. List mode is the same idea with a pool: each draw takes an item from the pool and removes it, so every distinct line you typed is picked at most once, and the draws stop early if the pool runs dry before Count.

What list mode does to your text

The list is split on line breaks, each line is trimmed of surrounding spaces, and the lines that are then empty are dropped, so a line of Alice with a trailing space becomes Alice, and a blank line between names is ignored. Duplicated lines are not merged: two lines that both read Alice put two Alice entries in the pool, and with no repeats on, a two-draw pick can still come back A, A, because the two entries are separate pool members. An input that is empty, or only spaces and line breaks, leaves no items at all, and the pick does nothing.

When a pick does nothing

Three inputs make the button a no-op: a Min that is greater than the Max, a Min or a Max that is not a number, and a list that trims to nothing. In each case the page makes no result and adds no history entry, and the previous result stays exactly where it was, because a failed pick does not clear it. The Count field is the forgiving one: an empty Count, a word, or a 0 all read as 1, so the field can be blank and the pick still draws once.

Where the numbers and the names go

Nowhere off the device. The fields are read by the page, the draws run on Math.random in the browser, and no network request is made at any point. The result and the ten-entry history live in the page state only: there is no saved history and no storage, so reloading the tab empties both. Copy uses the browser clipboard, so the drawn values leave the page only if you press copy and paste them somewhere.

What it is not

The tool draws, it does not generate secure values: Math.random is not a cryptographic source, so for identifiers use the UUID Generator, and for passwords the Password Generator, which are built on the browser secure randomness. It is also the lean end of random numbers: for a range with more options, the Random Number Generator goes further. For the walkthrough of another browser-computed tool in the same vein, see the string similarity guide.

Related Tools

Frequently Asked Questions

Does the Random Picker tool upload my list or my range to a server?

No. The fields are read by the page, and the only computation is the draws, one random index or one random integer per slot, so nothing leaves the device and no network request is made at any point. The result and the ten-entry history live in the page state only: there is no saved history and no storage, so reloading the tab empties both.

Why did the pick do nothing?

Three inputs are silent no-ops: a Min greater than the Max, a Min or a Max that is not a number, and a list that trims to nothing. In each case the page makes no result and adds no history entry, and the previous result stays exactly where it was, because a failed pick does not clear it. Note that an empty Count, a word, or a 0 are not no-ops: they all read as 1, so the pick still draws once.

Can the same number or the same item come up twice?

It depends on the Allow repeats switch. With it off, number mode redraws on a collision, so the same number cannot appear twice in one result, and list mode removes each drawn line from the pool, so a line cannot be picked twice. One catch in list mode: duplicate lines in your input stay as separate pool entries, so two lines that both read Alice can still both be drawn, giving a result like A, A. With the switch on, nothing is removed and collisions are kept, so any value, number or line, can repeat as often as the random draws say.

Is the randomness secure enough for passwords or tokens?

No. The tool draws on Math.random, the ordinary pseudo-random source of the browser, which is not a cryptographic source and should not be used for anything an attacker could profit from. For identifiers, the UUID Generator makes UUID v4 identifiers on the browser secure randomness; for passwords, the Password Generator is built for that. Keep this tool for games, lotteries, and picking a name from a list.

Why did I get fewer picks than I asked for?

The no-repeat mode caps the draws. Number mode draws at most the size of the range: five picks from 1 to 3 come back three, and a range where the min equals the max, like 7 to 7, comes back a single number no matter how many you ask. List mode draws at most the number of distinct lines you typed, because each draw removes its line from the pool and the draws stop when the pool is empty. Turn on Allow repeats to get the full count, with repeats.

Related Articles