Quote:
Originally Posted by jpollard
The only difference is that if the same random number comes up, then the two pictures will be together.
This also has the benefit of still being able to identify the original name for the image.
|
That is correct. Furthermore I prefer to have 4-digit numbers for this kind of randomization:
Code:
printf "%04d\n" $(($RANDOM % 10000))
jlinkels