#!/bin/sh # # Offers an alternative to the $RANDOM shell variable, # generating a pseudo-random integer number from 0 to # 32767 using /dev/urandom as a random data source. echo $(( $(hexdump -n 2 -e '"%u"' /dev/urandom) >> 1 ))