[...] you can shuffle a deck by generating a permutation of the set 1:n, but that is not how real cards are shuffled. The riffle (or "dovetail") shuffle is …