#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
int main(void){
int i,j,k,l,m, randomnumber;
time_t t;
time (&t);
srand(t);
printf("How many coupons do you want?\n");
scanf("%d",&j);
while(j>15){
printf("You aren't allowed to take more than 15 coupons, decide on a new number!\n");
scanf("%d",&j);
}
for(i=1;i<14;i++){
printf("\n");
printf("match %d :",i);
for(k=0;k<j;k++){
randomnumber = rand() % 3;
if (randomnumber==0){
printf("|1 |");
}
if (randomnumber==1){
printf("| x |");
}
if (randomnumber==2){
printf("| 2|");
}
}
}
}