cookie-based, unlike the one above it handles other numbers of galleries than just 31 or 365
PHP Code:
<?php
if(isSet($_COOKIE['bobotheclown'])){
header("Location: " . $_COOKIE['bobotheclown']);
} else {
$fileName = "./bobotheclown.txt";
$a = file($fileName);
mt_srand( (double) microtime() * 1000000 );
$randNum = mt_rand( 0, sizeof($a)-1 );
setcookie ("bobotheclown", $a[$randNum], time()+86400);
header("Location: " . $a[$randNum]);
}
?>