how to generate random numbers in shell script code example Example: get random number shell script $(( ( RANDOM % 10 ) + 1 ))