Lets say I have 4 balls and when each ball is drawn it can be any value between 1-40 inclusive.
If order isn't important then it would just be $40\cdot 39\cdot 38\cdot 37/4!$
But what if ball 1 had to be between 2 and 9, ball 2 between 9 and 20 and ball 4 had to be between 35 and 40
How would I go about calculating this?
Would it be $8 \cdot 11 \cdot 39 \cdot 5 / 4! $?
Im just interested in how id figure out how many combos i have with a given set of rules being that its not as simple as 40 x 39 x 38 ... but that each number must be in a specified range.
– Gab Nov 11 '13 at 22:17