I have to do the following:
For this project, you are to create a simple number guessing game. The program should
begin by asking the user for a range (i.e. a minimum number and a maximum number) in
which the random number should fall. Next, the program should ask for a maximum
number of guesses to allow. The program should then allow the player to attempt to
guess the number giving the maximum allowable guesses. The program should give the
player hints along the way, telling them if their current guess is too big or too small.
• Write a function that asks the player for the maximum number of guesses.
• Write a function that asks the player for the range (the minimum and maximum
values).
• Write a function that takes the player's current guess and the actual number and
tells the player if they are too high or too low.
• Write a function that takes the minimum and maximum values from the user and
returns a random number in that range.
My main problem is, I'm not sure how to do the range function... since you can only return one value I don't know how to take two numbers and return them to use in the randomNum function. Please help