awk/testdir/p.48b
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

6 lines
85 B
Plaintext

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