12-08-2010, 03:10 PM
|
|
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
Quote:
Originally Posted by grumpy
nope, that can result in -1 your first suggestion was ok
replace
$random = rand(0,count($urls));
with
$random = rand(0,count($urls)-1);
|
What he said...
|
|
|