in reply to Re: What I am missing here
in thread What I am missing here

This is slightly different that the fisher_yates_shuffle algorithm.

At the root of the matter, rand() is not random and has a odd,even,odd,even bias - or at least common implementations do. There are better "pseudo random number generators" than rand(). They are much more computationally expensive and I think outside of the scope of this thread.