#include int main() { int i; int c[7]; for(i=0; i<7; i++) c[i]=0; for(i=0; i<1000000; i++) { c[(rand()%6)+1]++; } for(i=0; i<7; i++) printf("%i:%i\n",i,c[i]); return 0; }