Interesting. It’s certainly elegant, and definitely suitable for many applications, including this memory game. I’m not schooled up enough on combinatorics to know at first blush if this method produces an unbiased distribution compared to the algorithm mentioned in the article.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Functional shuffle array
Interesting. It’s certainly elegant, and definitely suitable for many applications, including this memory game. I’m not schooled up enough on combinatorics to know at first blush if this method produces an unbiased distribution compared to the algorithm mentioned in the article.