View Single Post
Old 12-09-2004, 02:04 AM  
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Quote:
Originally posted by JSA Matt
Assuming the last line is blank (hit enter on line 3 makes line 4 blank), you would be right. Otherwise it will work fine.
Wrong again! rand(0,count($links)) will give FOUR possibilities; 0, 1, 2, and 3. And there are only three lines (0, 1, and 2). Is simple counting too complex for you?

rand(0,count($links)-1)
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote