skip to content
Alvin Lucillo

Using shuf to generate random numbers

/ 1 min read

The shuf command below generates a random number, starting at 5 and ending at 50.

shuf -i 5-50 -n 1
48