In reply to dave_59:
Thanks, Dave. Is my understanding for my above constraint right.
- The probability to have typ=1 and len>10 is 5/53. I get this by listing all the valid typ-len values when randomized. So we have -
typ=0; len=0-15 (total of 16 valid pairs)
typ=1; len=11-15 (total of 5 valid pairs)
typ=2; len=0-15 (total of 16 valid pairs)
typ=3; len=0-15 (total of 16 valid pairs) - If I included a ‘solve typ before len’ constraint in my class, the probability to have typ=1 and len>10 is 1/4. Is this right?