Programmers! Did you know you can fairly choose a random item from a list in a single pass, without knowing the total number of items in advance, and in constant, minimal space? This delightful method has lived rent-free in my head since I learned it from the Perl gods in the 90s: https://csg.sph.umich.edu/chen/Perl/cookbook/ch08_07.htm
The method has a name — Reservoir Sampling! (Thanks
@shaprShae Erisson)
If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/sanityinc/statuses/115572229544036698 on your instance and quote it. (Note that quoting is not supported in Mastodon.)