One problem I notice right away is that if they guess incorrectly it will tell them if they are too low or high, and then give them the answer and ask if they want to try again. if you enter 1 your program will allow you to input more numbers, if you enter something else it won't since it doen't meet the condition.
Try using a do while to set up the number, and then have a while loop inside the do to ask for an input and test it. It should keep looping indefinitely. If they guess the correct number it should let them know, tell them the amount of attempts it took, and break out of the loop, then it should ask them if they want to continue.
set random num
print info and break
print info and ask if they want to continue