randomizes the lines and outputs a specified number of lines. It does this with only a single pass over the input while trying to use as little memory as possible. PR: ports/68182 Submitted by: David Sze <dsze@alumni.uwaterloo.ca>