View Single Post
Old 03-24-2006, 04:12 PM  
More Booze
Confirmed User
 
Join Date: Mar 2004
Posts: 5,116
Quote:
Originally Posted by pstation
pretty simple...

Code:
<?php
$a = file("somefile.txt");
for($b=0;$b<15;$b++) 
  echo $a[array_rand($a)];
?>
just off the top of my head, there's always a chance that you might get a duplicate line but it should give you a good start..
Very nice, thank you very much! Works great.
More Booze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote