You can find already implemented examples of sorting arrays and shuffling cards decks for Construct 2, all those still work with Construct 3.
Be sure to check the tutorials and the How do I FAQ for C2 and you should have the mechanic/logic for a basic deck.
In your case, yes, I would use an array that would replace an index for a text mention. And have a different array used to determine the shuffled deck order of "cards".
Unlike a "regular" deck of card, you then wouldn't display a frame from a sprite, but actually display a string from the proper index in the original array.