You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HaxeFlixel
Is there a reason why HaxeFlixel's FlxRandom.shuffleArray implementation uses an unconventional shuffling algorithm, instead of a Fisher Yates shuffle? Couldn't it use something similar to the Random.shuffle<T> algorithm defined here? https://github.com/jasononeil/hxrandom/blob/master/src/Random.hx
The current algorithm is slower than Fisher-Yates, and often leaves items in their original position. Is there a reason why a partially shuffled array is useful for HaxeFlixel?