Thank you for sharing this! I may yoink your colls for bringing into my scripts 
I do something similar to this for prefixing the name of each sample within a folder of samples. To create nondescriptive but mnemonic sample names, at the same time as getting a random sorting (for anything that sorts by alphanumeric). For them to be mnemonic it’s helpful for them to be pronounce-able.
This ends up being a huge flow helper when auditioning or hotswapping different samples in Patterning 2 and ElasticDrums (I use both on iPad a LOT).
I don’t do it for all my sample folders but I do it for ones where otherwise the list becomes monotonous/lifeless. ie I had a folder with keychain shakes, misc chimes, shakers, all manner of rustlings and “junk” percussion. I found I’d end up “preset surfing” for the perfect chime or something and I’d deceive my ears to think nothing worked. Using this method to put the list on “shuffle” helps counteract the perfectionism as well as lead to surprises.
And yet because of memorable names I still remember some distinctive ones that have worked well repeatedly, and know to try those often/first.
Will post my very simple CLI script for this later 