initial commit
This commit is contained in:
10
chapter11/function_in_range_random_number
Executable file
10
chapter11/function_in_range_random_number
Executable file
@@ -0,0 +1,10 @@
|
||||
function in_range_random_number
|
||||
{
|
||||
# Create a pseudo-random number less than or equal
|
||||
# to the $UPPER_LIMIT value, which is user defined
|
||||
|
||||
RANDOM_NUMBER=$(($RANDOM % $UPPER_LIMIT + 1))
|
||||
|
||||
echo "$RANDOM_NUMBER"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user