View Single Post
Old 03-24-2006, 03:50 PM  
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
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..
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote