It seems that you are using a script with dashinstead bash, perhaps because you are calling the script as
sh prueba.sh
instead
./prueba.sh
or
bash prueba.sh
RANDOM- extension of bash; c dash, it is not special and is not assigned by default.
, $var, var , , . , var var , , 0.
Debian Ubuntu dash /bin/sh .
, bash dash :
$ bash -c 'unset foo;bar=25;echo $(($foo*$bar))'
bash: *25: syntax error: operand expected (error token is "*25")
$ dash -c 'unset foo;bar=25;echo $(($foo*$bar))'
dash: 1: arithmetic expression: expecting primary: "*25"