random in mac terminal

Shell
echo $RANDOM
Source

Also in Shell: