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)