$RANDOM

Each time you reference this variable you get a random value between 0 and 32767

${RANDOM}

RANDOM Each time this parameter is referenced, it expands to a random integer between 0 and 32767. Assigning a value to RANDOM initializes (seeds) the sequence of random numbers. If RANDOM is unset, it loses its special properties, even if it is subsequently reset. - bash manual