Since ls
returns the files in alphabetical order, is there a way to return the same files but in a random order? I am trying to loop through all the files in a directory, but would like it to differ in separate runs.
for i in *.py # Would like order to be random
do
...
done