Sorry to bump a super old thread. But this came up as a top result when I was searching for information regarding card deck in Construct so I should point out.
The initial capx in the OP does not do a random shuffle of the deck. It's easy to see, mathematically that it's not doing so.
That event group has a comment at the top explaining two algorithms that are mathematically sound. But the execution does not implement either of them.
The indexes need to reference "shuffle" for one thing.
Shuffle a few times and you will notice that many if not most of the cards are in their original spots.
Overall I found it to be a nice program and as a beginner to construct, found it educational. But the shuffle was not random or mathematically fair.
Again sorry to bump an old thread, but it needed to be done and was right to do.