#include <iostream>
#include <iomanip>
#include <time.h>
using namespace std;
int main()
{
const int velikost_polja = 7;
int vrednost_meta, pogostost[velikost_polja ] = {0};
srand(time(NULL));
for (int met = 1; met <= 6000; met++) {
vrednost_meta = rand() % 6 + 1;
++pogostost[vrednost_meta];
}
cout << " Met" << setw(17) << "Pogostost" << endl;
for (vrednost_meta = 1; vrednost_meta < velikost_polja ; vrednost_meta++) cout << setw(4) << vrednost_meta
<< setw(17) << pogostost[vrednost_meta] << endl;
system("pause");
return 0;
}