0
 $ seq 5 | shuf

March 12, 2015, 7:58 a.m.openiduser184

Explanation

shuf is part of the textutils package of GNU Core Utilities and should be available on most systems.