I'm writing a bash script that will contain random numbers such as 1.2, 3.4, 8.0, 10.9. I want to assign each number to a variable then compute the average.
I've tried doing t1=$(( ( RANDOM % 5 ) + 8 ).$(( ( RANDOM % 10 ) ))
and I get what I want, but I can't figure out how to add them all up then divide to get the average.