Fishuffle

It likely uses a naรฏve shuffling algorithm which tends to do things like that, instead of a Fisher-Yates algorithm. Too many shuffle functions are bad for just this reason.