The -i flag turns shuf into a random number generator for the inclusive range 1 to 100, and -n 5 prints five distinct picks. Without -n it shuffles the whole range. For random lines from a file, pass the filename instead of -i.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.