I hope you can shed some light here.
How can I generate random numbers inside one do-loop ?
Here is what I have so far:
# Random number
for (( i=1; i<=500; i++)
j = random
The problem with this loop is that running this script twice,
the same 500 'random' numbers are generated.
I thought about using the date in seconds as a seed but
I am not sure whether this is the most eficient way to do it.
I appreciate any help
This variable expands to the number of seconds since the shell was
started. Assignment to this variable resets the count to the
value assigned, and the expanded value becomes the value assigned
plus the number of seconds since the assignment.