Probability of Number Selection with Certain Conditions