In Bash the pseudo-variable RANDOM returns a pseudo-random integer in the [0;32767] range
echo $RANDOM
#Bash #Random