hey all,
I've been trying to shuffle a deck of cards but my shuffle results in the deck duplicating cards. i've used the the knuth shuffle and I had no luck i've found:
var cards = Enumerable.Range(0, 51);
var shuffledcards = cards.OrderBy(a => Guid.NewGuid());
but I don't know how to implement this to be sorted into another deck.
If someone could point me in the right direction in terms of another shuffle or sorting the above into an array or collection I would be grateful.
Thanks.