// random number generator -- build

#include "stdafx.h"
#include "stdlib.h"
#include "time.h"

int main(int argc, char* argv[])
{
	
	int  times, numbah, c1=0, c2=0, c3=0, c4=0, c5=0, c6=0;

    srand(time(NULL));

	for (times=1; times<= 10; times++) {


        
		numbah = rand() % 6 + 1;
//		printf("Try # %3d. You threw a %1d\n", times, numbah);

		if (numbah==1) c1++;
		if (numbah==2) c2++;
		if (numbah==3) c3++;
		if (numbah==4) c4++;
		if (numbah==5) c5++;
		if (numbah==6) c6++;
	} /*end times*/

	printf("** You threw a 1 %d times\n", c1);
	printf("** You threw a 2 %d times\n", c2);
	printf("** You threw a 3 %d times\n", c3);
	printf("** You threw a 4 %d times\n", c4);
	printf("** You threw a 5 %d times\n", c5);
	printf("** You threw a 6 %d times\n", c6);

	return 0;
}