#include <iostream>
#include <ctime>
#include <cstdlib>
#include <string>
using namespace std;
int Generate(){
int r= rand();
int s= r%8;
return s;
}
int main(){
int Stats[8]={0,0,0,0,0,0,0,0};
int seed= time(NULL);
int f= /*The number of enemies*/24;//
int g= /*The number of stat points that they get*/25;
string stat;
int h=1;
while (h<=f){
cout<<"\nEnemy # "<<h<<":\n";
for (int i=0; i<g; i++){
srand(seed);
int j= Generate();
Stats[j]++;
seed+=h;
}
for(int k=0; k<8; k++){
if (k==0){
cout<<"[table]";
}
switch (k)
{
case 0:
cout<<"HP|";
break;
case 1:
cout<<"STR|";
break;
case 2:
cout<<"SKL|";
break;
case 3:
cout<<"SPD|";
break;
case 4:
cout<<"LCK|";
break;
case 5:
cout<<"DEF|";
break;
case 6:
cout<<"RES|";
break;
case 7:
cout<<"CON|";
break;
}
cout<<Stats[k]<<endl;
if (k==7){
cout<<"[/table]\n";
}
Stats[k]=0;
}
h++;
}
}