#include <stdlib.h>
#include <iostream.h>
#include <time.h>

//This program simulates the rolling of the dice
//The seed is automatically supplied from the time;
//by reversing the comments, you can request that the user enter the seed
//Written by Wayne Summers   Oct. 8, 1996

void main()
{
 int count[7] = {0,0,0,0,0,0,0};
 unsigned seed;

// cout << "Enter a seed: ";
// cin >> seed;

 seed = time(NULL);
 srand(seed);
 int die;

 for (int j = 0; j < 10; j++)
 {
  die = rand();
  count[(die%6) + 1]++;
 }

 cout << "The following dice was rolled this many times\n";
 cout << "number rolled\t" << "number of times rolled\n";

 for (j = 1; j <= 6; j++)
  cout << "\t" << j << "\t\t" << count[j] << endl;
}