I see a little error in your test spec, for Fisher-Yates it is in fact possible that you get exactly the same array back (since it guarantees a evenly distr shuffle), for which you are testing exactly the opposite: