This will generate a random number between -10 and 10. shuf doesn’t understand negative to positive range so run it through bc.
# echo "$(shuf -i 0-20| head -1)-10"|bc
This will generate a random number between -10 and 10. shuf doesn’t understand negative to positive range so run it through bc.
# echo "$(shuf -i 0-20| head -1)-10"|bc