Known issue: Randomization is Insufficient - bensbits91/csnw-bb-poker GitHub Wiki

MATH.random() isn't ideal.

It seems to suffice on desktop Chrome (V8) and Safari (Webkit).

On FireFox (Gecko) and any iPhone browser (Webkit), we get flushes and straights almost every game.

We should implement a better shuffling algorithm, such as the "Fisher-Yates Shuffle."

This should be a minor change to implement. Needs extensive testing.

More details in the reported issue