Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

random number in bash

echo $RANDOM
echo $(( $RANDOM % 50 + 1 ))
Source by coderwall.com #
 
PREVIOUS NEXT
Tagged: #random #number #bash
ADD COMMENT
Topic
Name
8+1 =