View Single Post
Old 02-18-2007, 11:18 AM  
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Here is a php script to do it. Jace asked for a similar one some time ago, it might work for you. It outputs to the screen vs. saving another file, so copy/paste will be your friend
You can also remove the <br> in the echo statement and just save the output if that works better.
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<br>"
   } 
exit; 
?>
or,
Potter posted a way to do it in Excel or OpenOffice..
Quote:
You can also use open office. Paste all the items into a spreadsheet, then paste the random number char code into the column next to the urls, then sort by numbered column, copy the column with the urls and you're done.
Sorry Woj, you hadn't posted yet when I started..
I imagine Woj can do a lot better than this anyway, definitely worth looking into

Last edited by Quickdraw; 02-18-2007 at 11:20 AM.. Reason: added woj stuff
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote