I think it is covered in the fourth one. You might have warnings turned off, so you don't see the warning about the rand() function. Look for this line just a little before line 98:
$choose = rand(1, $count);
And change it to:
$choose = rand(1, intval($count));
Hope that helps.