Location: PHPKode > scripts > Random link > random link/random_link.php
<?php
$f_contents = file("random_link.txt");  
$link = $f_contents[array_rand($f_contents)];  

echo $link;
?>
Return current item: Random link