Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5
BEGIN { k = 3; n = 10 } { if (n <= 0) exit if (rand() <= k/n) { print; k-- } n-- }