For a small slide show I wanted to randomize the filenames. I first thought about random numbers but I realized that there can be collisions. Then I came over the idea to use a hashing algorithm. The first few characters should be sufficient (like in git).
Here is a short snippet. It’s quick and dirty but it works. Maybe it would be nice to specify file extensions, too.