InputTestHub

Random Line Picker

Picks one or more random lines from a list — a fair way to draw a giveaway winner from a list of entries.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Paste something on the left to see the result.
In short Picking random lines selects one or more entries from a list at random, using crypto.getRandomValues rather than Math.random. That matters when the draw decides something. Math.random is a pseudo-random generator seeded from the system state, and its output is not designed to resist prediction; the cryptographic source is. For a giveaway with a real prize, or any draw where someone might reasonably ask whether it was fair, the difference is worth having. The selection is without replacement when you pick several, so the same line cannot win twice — which is almost always what a draw means, and is worth confirming because some tools do it the other way. Two practical points for running a draw. Deduplicate the list first, because a name entered twice has twice the chance and that is exactly the objection someone will raise afterwards. And remove blank lines, which are entries as far as the picker is concerned. The remove-duplicate-lines and remove-empty-lines tools do both in a few seconds.

How to use the Random Line Picker

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Random Line Picker

The Random Line Picker picks one or more random lines from a list — a fair way to draw a giveaway winner from a list of entries. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Drawing a giveaway or competition winner from an entry list.
  • Picking a random name for an assignment.
  • Sampling rows from a dataset.

Details

Randomnesscrypto.getRandomValues, not Math.random — the draw is not predictable from previous results

Frequently asked questions

Does the Random Line Picker cost anything?
No charge and no sign-up. There is no free tier to run out of because there is no paid tier — inputtesthub.com is funded by advertising rather than by metering the tool.
Is what I paste into the Random Line Picker stored?
No. The Random Line Picker runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
Who is the Random Line Picker for?
In practice it gets used for three things: drawing a giveaway or competition winner from an entry list. Picking a random name for an assignment. Sampling rows from a dataset. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Can I use the Random Line Picker on mobile?
Yes. The page is responsive and the tool works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Case Converter

Converts text between twelve cases: UPPER, lower, Title, Sentence, camelCase, PascalCase…

02

Uppercase Converter

Converts any text to UPPERCASE instantly, keeping numbers, punctuation and line breaks exactly…

03

Lowercase Converter

Converts any text to lowercase, including text that was typed with Caps Lock on by mistake.

04

Title Case Converter

Converts headings to proper Title Case using AP and Chicago rules, keeping short words like…

05

Sentence Case Converter

Rewrites text in sentence case: first letter of each sentence capitalised, the rest lowercase…

06

camelCase Converter

Turns any phrase into camelCase for JavaScript, Java and JSON keys, stripping spaces, hyphens…

07

PascalCase Converter

Converts phrases to PascalCase (UpperCamelCase) for class names, React components and type…

08

snake_case Converter

Converts text to snake_case for Python variables, database columns and file names.

09

kebab-case Converter

Converts text to kebab-case for URLs, CSS class names and HTML attributes.

10

CONSTANT_CASE Converter

Converts text to SCREAMING_SNAKE_CASE for environment variables, constants and configuration…