🎲Random Line Picker

Pick a random line from text

lines

How the random line picker works

Use it to pick a giveaway winner from a list of entries, to decide who presents first, or to settle on one option out of many. Paste the list with one item per line, set how many lines to draw, and press the button. Pressing it again draws a fresh result from the same list, so re-runs take one click.

Randomness comes from the browser cryptographic random generator. To remove the small bias that plain modulo arithmetic introduces, values that fall outside an evenly divisible range are discarded and drawn again. Older browsers without a cryptographic source fall back to an ordinary generator, and the draw method line says so when that happens.

Blank lines are excluded from the pool by default, because lists copied out of a spreadsheet often carry them and an empty winner helps nobody. The result reports how many were skipped. With duplicates off, every drawn line is different, and if you ask for more than the pool holds, the tool draws everything available and tells you how many that was. With duplicates on, the same line can appear several times, which is what you want for repeated sampling. The original line number of each pick is listed too, so you can trace where it came from.

Frequently asked questions

What if I ask for more lines than the list has?

With duplicates off the tool draws every available line and reports how many that was. With duplicates on you can draw more picks than the list contains.

Is the draw genuinely fair?

It uses the browser cryptographic random generator with rejection sampling to remove modulo bias. For an official prize draw you should still keep your own audit record.