Or you could just do something like:
MYRAND=`$echo $RANDOM % 7 |bc`
The above devides the $RANDOM number by 7 then prints only the remainder. Since the $RANDOM is random the remainder will always be random as well. You could use another single digit number other than 7 (I picked that one at random
) MYRAND would be the random number you got.