#include<stdio.h>
#include<time.h>
#include<stdlib.h>
char *suit[4]={"Spades","Hearts","Diamonds","Clude"};
char *face[13]={"Ace","Deduce","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Jack","Qween","King"};
int main()
{
char *deck[52][2];
int temp[52],i,j,tem;
for(i=0;i<52;i++)
temp[i]=i;
srand(time(NULL));
for(i=0;i<52;i++)
{
tem=rand()%(52-i);
j=temp[52-i-1];
temp[52-i-1]=temp[tem];
temp[tem]=j;
}
for(i=0;i<52;i++)
{
deck[i][0]=suit[temp[i]/13];
deck[i][1]=face[temp[i]%13];
}
for(i=0;i<52;i++)
{
if(i%13==0)
printf("\nPlay %d: ",i/13+1);
printf("%s %s ",deck[i][0],deck[i][1]);
}
printf("\n");
return 0;
}