diff --git a/src/excercises/dice.cc b/src/excercises/dice.cc new file mode 100644 index 0000000..d6eace8 --- /dev/null +++ b/src/excercises/dice.cc @@ -0,0 +1,19 @@ +#include +#include +#include +#include + +using namespace std; + +int main() { + + + int minValue = 1; + int maxValue = 6; + for (short i = 1; i < 3; i++) { + srand(time(nullptr)); + cout << "Dice " << i << ": " << (rand() % (maxValue - minValue)) + minValue << endl; + } + + return 0; +}