$total = count($links); $i = rand(0,$total-1); ?>