The sample verb picks k records at random, here 2, without replacement. It is a handy way to eyeball a large file or build a small test set. The -k flag sets the sample size. Unlike shuf, sampling happens inside Miller with full CSV awareness.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.