Probability (in this case) is the ratio of desired outcomes to all outcomes. Let's count desired outcomes in your particular case (and by the way we derive a general formula to compute it).
Suppose you roll 4 dice and you have a total success - on every die you get "7 to 10". How many quadruplets of numbers "1 to 10" may cause it? It is not so difficult: $4 \cdot 4 \cdot 4 \cdot 4$ or $4 ^ 4$.
Then you roll the 4 remaining dice - but now you need a total failure - numbers 1 to 6 on every die. How many quadruplets is able to cause it? The answer is similar: $6 ^ 4$.
So for the first group of four dice to be totally successful and in the same time the second group of four dice to be totally unsuccessful - e. g. $(8, 8, 8, 8, 1, 1, 1, 1)$ - there is $4^4 \cdot 6^4$ possibilities.
But where is written that the first four dice have be successful (and in the same time the four others not)? We may select four successful dices by $_8 \mathop{C}_4 = 70$ ways. So all successful possibilities count $70 \cdot 4^4 \cdot 6^4$ which gives the result $23{.}224{.}320$.
So the general formula for the number of desired outcomes is
$$_n {\mathop{C}}_k \cdot p^k \cdot q^{n-k}$$
Note: Please don't forget to divide it by the number of all possibilities, i. e. by $(p + q)^n$ to compute the probability.
It is a simple algorithm. I check to see if a state is 'successful' by counting the die > X and if they match or exceed M it works. Then I add 1 to the left-most state. If it overflows, it resets to state 1 and increments the next state. If the last state resets, it's the end. I wind up with 40,591,360 successful states and 100,000,000 which is about 40.59%. Maybe my algorithm is wrong, or my logic, or something?
– Nov 10 '16 at 15:16nCkthan producing the list of all combinations and counting them. – Lutz Lehmann Nov 10 '16 at 18:00