I'm trying to create a matrix of random numbers after prompting the user for the number of rows and columns of random numbers. I can only use nested for loops.
I have created two variables: rows and columns but my main problem is getting the for loop to echo properly. Here's my loop function
for i in [1..$rows]; do echo "$RANDOM"; done
I have tried to increment the value of i with 1+1 but not matter what it only runs the loop once. I want the script to read the value of $rows.