Here's one in PHP for ya -
Code:
<?
$tgp = file($type . '.txt');
srand((double)microtime() * 1000000);
header('Location: ' . $tgp[rand(0,count($tgp)-1)]);
?>
1) Save the file as tgp.php
2) Create text files containing URL's (one URL per line) and save it as type.txt i.e. for Teens, you would use teens.txt
3) To run the script - tgp.php?type=teens
Enjoy...
Dave