Windows XP's random default picture used tick-count-seeded RNG and one-pass selection
A technical breakdown explains how Windows XP picked a user's initial account picture: it used the RtlRandomEx function seeded with GetTickCount(), scanning the default pictures folder once rather than twice. This single-pass method is a special case of reservoir sampling, selecting one item fairly as the folder is enumerated.