If you can use PHP, here is quick dirty way to do it
PHP Code:
<?php
$file = file("urls.txt");
// Strips dupes if you need, comment out if you do not need this
$temp = array_unique($file);
//Shuffles the deck or randomizes :)
shuffle($temp);
//Prints each line
foreach($temp as $value)
{
echo $value;
}
exit;
?>