Based on this exacting 1000 time simulation of the best night of your high school life, you got very lucky!! BTW, this code works fine. from random import randint def he_gets_the_bottle(): if randint(0,9) == 1: return True def it_points_to_uma(): if randint(0, 9) == 1: return True def bonanova_gets_a_kiss(): if he_gets_the_bottle() and it_points_to_uma(): return True kisses = 0 for i in range(1000): if bonanova_gets_a_kiss(): kisses += 1 print kisses