FlxRandom: fix bug in weightedPick() (thanks @LouieG2), closes #893