dice rolling in C# console application giving incorrect totals
问题 I am writing dice roller program in C# console. I am giving two input Enter the size of the dice and Enter how times you want to play. Suppose dice size is 6 and 10 times i have played. Output is coming: 1 was rolled 2 times 2 was rolled 7 times 3 was rolled 8 times 4 was rolled 7 times 5 was rolled 4 times 6 was rolled 5 times Total: 33 (its not fixed for every execution this no will be changed) But my requirement was this total always should be number of playing times. Here I am playing 10