bash generate random number code example
Example 1: get random number shell script
$(( ( RANDOM % 10 ) + 1 ))
Example 2: bash random number
$ echo $(( $RANDOM % 10 ))
Example 3: bash generate random number between
#If you have coreutils installed and want a number inbewtween a value
shuf -i MIN-MAX -n 1
#or you can use bash
$RANDOM