awk/testdir/p.48b

6 lines
85 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
BEGIN { k = 3; n = 10 }
{ if (n <= 0) exit
if (rand() <= k/n) { print; k-- }
n--
}