Here is the part that generates the 10 random numbers.
MAXCOUNT=10
count=1
while [ "$count" -le $MAXCOUNT ]; do
number=$RANDOM
let "count += 1"
done
Now how do I output this to an array and then echo that array?
Here is the part that generates the 10 random numbers.
Now how do I output this to an array and then echo that array? |
|||||||||||||
|
Are you using bash? In that case, try something like that:
You can also replace the last line with:
Some documentation here: http://www.tutorialspoint.com/unix/unix-using-arrays.htm |
|||||||||
|