in reply to
Re: Re: random number
in thread random number
#splice is still O(n)
$array[$index] = $array[-1];
True. And that's a neat solution.
It would still be better to shuffle the array and simply pop the next one when you need it as was suggested at near the top of the thread.
Examine what is said, not who speaks.
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (673 votes),