import num_generator

while True:
    jelly_num = int(input("how many jelly beans: "))
    rand_num = num_generator.rand_generator(1, jelly_num)
    # oddeven = num_generator.rand_generation
    stats = 0 
    while True:
        stats += 1
        guess = int(input("what is your guess?"))

        if guess > rand_num:
            print("your guess is too high")
        elif guess < rand_num:
            print("your guess is too low")
        else:
            print("Awesome! It took", stats, "attempts to guess", rand_num)
            break

    count = input("do you wish to play again? Y/N")
    if count in "nN":
        break