xref: /freebsd/contrib/one-true-awk/testdir/p.48b (revision a4e5e0106ac7145f56eb39a691e302cabb4635be)
1BEGIN	{ k = 3; n = 10 }
2{	if (n <= 0) exit
3	if (rand() <= k/n) { print; k-- }
4	n--
5}
6