Vol. VII  ·  No. 38  ·  The Autumn Folio Reader-Supported Issue

A Handwritten Journal Called

Pens  ✎  Paper  ✎  Ink  ✎  Letters

Pairing Pen Pals Fairly

By Theo Vandermeer September 3, 2026 The Workbench 1 min read 42,505 Views 8 Comments

The short script we use to match readers without anyone getting the same partner twice.

From the autumn photo box.

Every January we pair new pen pals. Doing it by hand used to take an evening and still produced repeats.

pairings.pyPYTHON
import random

def pair(readers, history, seed):
    rng = random.Random(seed)
    pool = readers[:]
    rng.shuffle(pool)
    pairs = []
    while len(pool) > 1:
        a = pool.pop()
        b = next((r for r in pool if (a, r) not in history), pool[0])
        pool.remove(b)
        pairs.append((a, b))
    return pairs

The script shuffles the register, skips pairs that have written before, and uses a fixed seed so we can reproduce the list if anyone asks.

8 Comments  on this note

  1. M
    Mabel Ortega Reply ›

    Is there a printable version of the practice sheet? I would happily pay for one.

  2. H
    Hamid Rostami Reply ›

    I laughed at the bit about losing the loupe. Mine is in a drawer I cannot find.

  3. D
    Dmitri Halloran Reply ›

    Printed this out and pinned it above my desk. The part about slowing down before the line is so true.

    1. I
      Iris Kettering Reply ›

      Try a medium stub. It hides a lot of wobble.

  4. R
    Rufus Tennant Reply ›

    Printed this out and pinned it above my desk. The part about slowing down before the line is so true.

  5. G
    Greta Solberg Reply ›

    Is there a printable version of the practice sheet? I would happily pay for one.

  6. E
    Elsie Marchetti Reply ›

    Left-handed writer here: this is one of the few guides that actually works for us.

  7. M
    Mabel Ortega Reply ›

    I would love a follow-up on how this holds up after a full year.

Leave a Comment

All comments are reviewed prior to publication. Your email address will not be displayed. Fields marked * are required.