$rand = int(rand(10)); if (0 == $rand % 2) { &print_one; } else { &print_two; }