I'd like a formula that selects a random image from a given folder based on any input

I have a lot of lock screen wallpapers, and I'd like to cycle them randomly every time I unlock my phone or if I press a button on the screen. I do not want to use the $tu function.

I've searched, and I've asked, and I don't think this function exists (at least not without significant hacking).


You could try the following formula, but you need to set the filename of each image file using sequence number.




mu(rnd, 1, 30)+".png"


Hope this helps.