Random Choice

Put one choice per line.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

The pick uses the browser random source.

An empty list is rejected.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Pick one.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

One trimmed line, chosen by modulo

How a line becomes a candidate

The textarea is split on newlines. Each piece is trimmed, and empty pieces are dropped. The remaining lines are the population. crypto.getRandomValues fills one 32-bit cell, the line count folds that cell, and the chosen line is returned. Duplicate lines are duplicate entries, so a line you pasted twice is twice as likely as a line you pasted once. There is no weight column and no “remove after pick” switch. The draw is with replacement relative to the text you currently have, but only one line comes back.

An empty list, after the trim, throws that the list is empty. A box of only blank lines fails that way. The function does not invent a choice. It does not parse commas, and it does not split on spaces. If you put three options on one line, they are one option. Put each option on its own line.

Bias and repeats

When the count of lines does not divide 2^32, some lines are one modulo-step more likely. For a short menu the tilt is tiny and it is still the code. Clicking again is an independent draw, so the same line can win twice in a row. The page does not remember the last winner. Unique mode from the integer generator is not available here. If you need several distinct winners, you would have to remove a winner yourself and draw again, or use the integer tool against a numbered list.

What the pick is not

This is a poor draw for money, and nobody signs the winner. The winning line is visible and is not logged by the site. You do not receive a permutation of the whole list. One line comes back. The fictional-person tool ignores your text and fills name and address templates instead. Your lines are used as written after trimming, including joke entries and blanks you failed to delete. Trimmed spaces mean “a” and “a “ collapse to the same candidate only when they become the same string. Interior spaces stay. Choose this page when the population is a list you can see. Choose the integer page when the population is a numeric range.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.