[PHP] Choosing a random file from a directory

Hello, I was wondering how one would go about getting a random file froma directory? I havent worked with filesystem stuff in php yet, and seem to be at a loss when I look into it.

:smiley: So If anybody could point me in the right dir.