Shuf

shuf is a command-line utility included in the textutils package of GNU Core Utilities for creating a standard output consisting of random permutations of the input.

The version of  bundled in GNU coreutils was written by Paul Eggert. It is not a part of POSIX.