The problem is probably caused here (bad code or lack of code):
PHP Code:
if(iNum > 0)
{
ran = random(iNum);
iPlayers[ran] = iPlayers[--iNum];
player = iPlayers[ran];
}
However, you should probably rethink how you do the whole random_choose() function.
__________________