Bash Internal variables $RANDOM


Example

Each time this parameter is referenced, a random integer between 0 and 32767 is generated. Assigning a value to this variable seeds the random number generator (source).

~> $ echo $RANDOM 
27119
~> $ echo $RANDOM 
1349