Question: Write a C++ program to simulate the tossing of 2 dice a large number of times. Use a function rand_int that returns a random integer
Write a C++ program to simulate the tossing of 2 dice a large number of times. Use a function rand_int that returns a random integer between 1 and 6, inputs are 1 and 6, output is one integer. You will need to set the seed using srand, this can be user input. Using a loop, run the program 10 times, and have the program print the results of each roll and have it count the sum of each dice toss (roll).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
