lundi 12 avril 2021

Bash shell script - random numbers in a range from user input [closed]

echo -e "Min: \c"
read min
echo -e "Max: \c"
read max
shuf -i $min-$max -n 5 

This code doesn't work. shuf seems to only work with actual numbers, not variables.

Could you please help? Or are there any other ways?




Aucun commentaire:

Enregistrer un commentaire