To set up the SSI Random Image script:
Upload ssi_image.pl to /cgi-bin/
chmod 755 ssi_image.pl
$image_dir = "/home/user/public_html/images/random/";
$image_url = "/images/random/";
<!--#exec cgi="/cgi-bin/ssi_image.pl"-->