Select a random Image from a Directory

Select a random Image from a Directory

Hello there !

I'd like to know if there's a possibility to select a random image .. but .. from a directory

I've seen many posts regarding this subject, but all of them show the procedure once you have the image names inside an array. 

I need to know how to select a random image from a directory that's filled with them, like let's say /public/images

Is there a way to do this?

Thanks in advance,

Sincerely,

Jose.