Skip to content
List & number tools Free · Private

Two-List Random Matcher

Pair items from one list to another.

Built and maintained by Paul Clark, Redmoon Software · Last checked

The Two-List Random Matcher pairs each item in list A with an item from a shuffled list B. It's a quick way to hand out prizes, assign chores, set up Secret Santa, or randomly pair people with partners. Drop your two lists in, hit match, and get a clean A-to-B pairing every time.

Paste. Paste your items into list A and list B.

Click Match A → B to see a result.

Options
Recent results
  • No history yet.

How it works

  1. Paste. Paste your items into list A and list B.
  2. Match. Click Match A → B to shuffle B and pair it to A.
  3. Copy. Copy the resulting pairings for your records.
  4. Re-roll. Click Match again for a different set of pairings.

About the Two-List Random Matcher

It zips one list against a shuffle of the other

List A stays in the order you typed it. List B is shuffled, and then the two are zipped together — first of A with first of shuffled B, and so on. That produces a one-to-one matching where every pairing is equally likely, which is the correct model for assigning people to projects, partners or slots.

Because A is not shuffled, the output appears in the order you entered your people. That is a small convenience worth knowing: type your list alphabetically and the results come back alphabetically, which makes them much easier to read out.

When the lists are different lengths

If B is shorter than A, it wraps: once B is exhausted the matching starts again from the beginning of the shuffled list, so some entries in B are used more than once. If B is longer than A, the surplus entries in B are never used.

Neither case raises an error, which means a mismatch in list lengths is silent. If a one-to-one matching is what you need, check the counts first — the tool will happily give you an eight-to-five matching that looks entirely normal.

What this is and is not

This is a matching, not a series of picks. Repeatedly drawing "a random project for each person" from a picker would hand the same project to two people and leave another unassigned; zipping against a shuffle cannot. The distinction is worth understanding properly if you do this often.

Set a Seed for a matching you need to reproduce. Both lists are saved in this browser as you type.

Frequently asked questions

What happens if the lists are different lengths?

A is matched against a shuffled B. If B is shorter than A, B repeats as needed so every item in A gets a match.

Can I match a list to itself?

Yes. Paste the same list into both A and B to create random pairings within a single group.

How random is the pairing?

List B is shuffled with the Web Crypto API, giving every possible pairing an equal, unbiased chance.

Do my lists leave my device?

No. The matching runs entirely in your browser, so neither list is ever sent to a server, and it works offline.

Related randomizers

Further reading

Send feedback

Found a bug, want a feature, or just say hi? Send it our way.