This form allows you to roll virtual dice. The randomness comes from atmospheric noise, which for many purposes is better than the pseudo-random number.
The issue is that you have two loops instead of one to record the roll. Your code rolls if (total == 8) else if (total == 9) else if (total == 10) else if (total == 11) else if (total . roll */ i roll = rand () % 6 + rand() %6; /* Our dice have sides from 0 to 5 */ *(ptr +.
Probability: 8 - sided die: I have an octahedron. Probability and the 'Ways Method': Suppose we roll one six- sided die. you toss a coin and roll a die, what is the probability of obtaining: a) heads and a five b) heads or a five c) tails or a two?.