Cardchoose: a 12-line, provably fair no-retry algorithm for sampling without replacement

NathanpmYoung · x · 2026-10-26

Developer ciphergoth released the sansreplace repo tackling a deceptively subtle problem: dealing 5 cards from a 52-card deck so every hand is equally likely.

Original post →

More from coding & agent

coding & agent channel →