Code:
#include <stdio.h>
#include<conio.h>
#include <time.h>
main()
{
int r_pick = 0;
int suit [4] ={3,4,5,6,};
int card = 0;
int deck [52] ={653,654,655,656,
23,24,25,26,
33,34,35,36,
43,44,45,46,
53,54,55,56,
63,64,65,66,
73,74,75,76,
83,84,85,86,
93,94,95,96,
103,104,105,106,
743,744,745,746,
813,814,815,816,
753,754,715,716,};
do
{
printf("\n\nPress a key to get a card \t\t ( or 'x' to exit.");
srand ( time(NULL));
deck=rand() %52+1;
printf("n\noyur card was %d,",card);
suit=rand() %4+1;
printf("\n\nyou suit was %c,",suit);
}
sytem("pause");
}