View Single Post
Old 02-18-2007, 04:45 PM  
ucv.karl
Confirmed User
 
Join Date: Jul 2006
Location: Phx,Az
Posts: 498
I am not sure how PHP became the de facto language for all tasks, but here is alternative solution using Ruby.

Code:
data=IO.readlines('urls.txt')

new_data=data.sort_by {rand}

output=File.open('output.txt','w')

new_data.each do |line|
        output.puts line
end

output.close
__________________
It's better when you can Switch.
ICQ: 263079754
ucv.karl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote