Skip to content
UniKit

List item picker

Draw a fixed number of items at random from a list — without replacement by default (shuffle, then take the first N), or with replacement; the random source is injectable and a self-made PRNG seed makes runs reproducible, with optional remaining items and numbering.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Candidates (one item per line)

Draw result

One item per line; remaining items are separated by ---.

Paste a list to draw at random

Candidates: 0 · Drawn: 0 · Remaining: 0 · Reproducible: 0

What this tool does

  • Lottery and draws: paste a roster, draw N names and list the remainder as alternates.
  • Spot-check sampling: pull 20 records out of thousands for manual review, using a fixed seed so the review is reproducible.
  • Pilot selection: pick a random subset to try first before processing everything.

Example

Input

apple
banana
cherry
durian
grape
melon

Output

banana
apple
grape

Without replacement: the six items are shuffled with seed 42 and the first three are taken. The same seed always yields the same result.

Frequently asked questions

How do I make a draw reproducible?

Fill in the seed: the same seed plus the same list and count always produces the same picks, because the tool uses its own mulberry32 PRNG. Leave the seed empty to use system randomness, where every run differs.

What does “allow repeats” mean?

By default drawing N items gives N distinct entries, so N cannot exceed the list length (that raises an error). With repeats allowed it becomes a draw with replacement: N may exceed the list length and the same item can be drawn more than once.

How is the remainder computed?

Without repeats, each drawn item is removed from the pool one occurrence at a time (matched by content), and whatever is left is the remainder. With repeats there is no remainder, so the count is 0.

Are duplicate lines treated as separate entries?

Yes. Nothing is deduplicated by default, so duplicate lines are independent candidates and are more likely to be drawn. Turn on “Deduplicate first” to give each value a single slot.

Keywords:随机抽取随机抽签list pick随机抽样抽奖random sample种子随机抽几个

Related tools