Originally Posted by major_small
well in that code, a random number between 1 and n is generated M times...
in the description, it looks like they want you to throw the dice N times. let's use 10 for example. then it says that it wants you to thow the dice that many times for M times. let's use 5 there. so, now you have N as 10 and M as 5. what it's saying is to create a program to simulate N(10) dice throws M(5) times, and find the probability that the sum will either be 7 or 11 on any given throw.
basically, keep the M and N seperate from the M,n,i, and x from the program code. that was probably not a very good choice on your instructors part. the question has some difficult wording as well, but that's something you'll need to get used to in programming classes...
FYI: it's not really a RNG, it's actually more of a PRNG, or a Psuedo Random Number Generator, because the numbers it generates are not truly random, but it'll be good enough for now...