Files
sausage/userland/goawk/source/testdata/p.48b
T

6 lines
85 B
Plaintext

BEGIN { k = 3; n = 10 }
{ if (n <= 0) exit
if (rand() <= k/n) { print; k-- }
n--
}