Not sure I understand your problem.
A way to shuffle the cards is to create an array holding the 52 cards and use the Collections shuffle method.