Hi everybody.
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++)
do
j = random
printf $j
end
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
Thanks,
Serg