Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

enter a number using RANDOM in shell scripting

DIFF=$((Y-X+1))
R=$(($(($RANDOM%$DIFF))+X))
Source by blog.eduonix.com #
 
PREVIOUS NEXT
Tagged: #enter #number #RANDOM #shell #scripting
ADD COMMENT
Topic
Name
9+9 =