http://www.perlmonks.org?node_id=814477


in reply to Random sampling a variable record-length file.

This might sound stupid, but Donald Knuth achieved that for his book 3:16 by taking the 16th verse out of the 3rd chapter of every book of the bible.