xref
: /
illumos-gate
/
usr
/
src
/
test
/
util-tests
/
tests
/
awk
/
examples
/
awk
/
p.48b
(revision 4c87aefe8930bd07275b8dd2e96ea5f24d93a52e)
Home
History
Annotate
Line#
Scopes#
Navigate#
Raw
Download
current directory
1
BEGIN { k = 3; n = 10 }
2
{ if (n <= 0) exit
3
if (rand() <= k/n) { print; k-- }
4
n--
5
}
6