Simulate two separate dice (use random numbers with the appropriate range) being rolled 10 times. What are the percentage of rolls that resulted in a sum of 7, a sum of 2 and a sum of 11.
I came across this problem and have spent ages trying to figure out the algorithm for this...any help would be appreciated. I would show you what I came up with but i have nothing...
You need a random number generator that gives a uniform distribution on $[1,6]$ to be a die. Then loop from $1$ to $10$, rolling two dice each time. Total the dice and count the times you get $2, 7, 11$. Report the results