I have been working on this for a while now and its about done, but I just want to make sure this is the best way of doing this.

Its a dice-game program rolling the dice x times, giving a random number between 1 and 6 and adding them together as well as showing the highest and lowest number.

The idea is to make it as flexible as possible, and preparing it to be devided into seperate files in the future.

Please give me your input on how to improve the flexibility and preperation.

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106`` ``````#include #include #include using namespace std; class Dice { private: static const int TIMES = 10; int game[TIMES]; public: void roll(); void result(); void highDot(); void lowDot(); void enumerateDot(); }; int main() { Dice user; user.roll(); user.result(); user.highDot(); user.lowDot(); user.enumerateDot(); cout << "\n\nPress ENTER to exit."; cin.get(); } //FUNCTIONS void Dice::roll() { srand(time(0)+rand()); for(int i=0; ihighest_number) { highest_number = Dice::game[i]; } } cout << "\nMaximum number of dots is:\t" << highest_number << endl; } void Dice::lowDot() { int lowest_number(6); for(int i=0; i

Make roll method take an int: number of dices to be rolled.
Use dynamic arrays (or vector) to store any numbers of roll.
Support of different sided dices (d4, d6, d8, d10, 1d2 ,d20, d100...) is a godd idea.
`srand(time(0)+rand());` does not give you more randomness than just `srand(time(0));`.