I have done it already. This is full program code
//casting of a hexahedral bone 6000 times
#include <iostream>
#include <iomanip>
#include <stdlib>
#include <time>
using namespace std;
int main()
{
const int arraySize = 7;
int face, frequency[arraySize] = {0};
srand(time(NULL));
for (int roll = 1; roll <= 6000; roll++) {
face = rand() % 6 + 1;
++frequency[face];
}
cout << "Gran" << setw(17) << "Chastota" << endl;
for (face = 1; face <= arraySize; face++)
cout << setw(4) << face
<< setw(17) << frequency[face] << endl;
return 0;
}