Topic: Script request

I'm running PunBB on a server and I have some images I want to randomise in my sig. No problem you might say. Thing is, they're hosted on photobucket and I really am too lazy to copy them all across. So could someone perhaps make a script that I could upload on my server to call a random image from my photobucket account? The URL for my account is and the version used for the images is or at least that's what it gives me for static image linking.

My server supports PHP and Perl/CGI-BIN. Any help greatly appreciated.