Files
mastering-unix-ss/chapter11/function_get_random_number
Fabio Scotto di Santolo 4cc88d2f6e initial commit
2020-07-28 19:28:25 +02:00

9 lines
146 B
Plaintext
Executable File

function get_random_number
{
# This function gets the next random number from the
# $RANDOM variable. The range is 0 to 32767.
echo "$RANDOM"
}