DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit