Randomize deck of cards using constraints

In reply to hsam:

Yes, you could easily represent a deck of cards with an array of integral values, and then use the unique constraint. But that would change the original posted question of having a class object represent a single card.