
#include<iostream>
#include<ctime>
#include<cstdlib>
using namespace std;
class Die{
private:
const static int MAX = 6;
int faceValue;
public:
Die(){
faceValue = 1;
}
int roll(){
srand(time(NULL));
faceValue = (int)rand()%MAX + 1;
return faceValue;
}
void SetFaceValue(int value){
faceValue = value;
}
int GetFaceValue(){
return faceValue;
}
};
int main()
{
Die d1,d2;
d1.SetFaceValue(4);
d2.roll();
cout<<d1.GetFaceValue()<<endl;
cout<<d2.GetFaceValue();
return 0;
}