choose.icn: Program to pick lines from a file

January 14, 2002; Gregg M. Townsend
This file is in the public domain.
usage:  choose [-N] [file...]

This program randomly selects N lines from the input stream and
outputs them in order.  If N is omitted, one line is chosen.
If the input stream supplies fewer than N lines, all are output.

Source code | Program Library Page | Icon Home Page