for command substitution in bash, we do this
hello=$(ls -la)
echo "$hello"
but when i do the same for below command,it fails,it says RANDOM not found
hell=$(RANDOM)
echo "$hell"
I can get over it ,by using arithematic expansion..
hell=$((RANDOM))
echo "$hell"
Any idea why below doesn't work...as per my understanding, RANDOM is also a command and i should have gotten number echoed
hell=$(RANDOM)
echo "$hell"
RANDOM
directly fails on bash,butecho $RANDOM
works