Guess the number
Guess the secret number game: the computer picks a number and tells you if your guess is higher or lower, until you get it right.
Guess the secret number
Guess the number: what it is for
Choose the range (1 to 10, 1 to 100 or 1 to 1,000) and guess until you hit the secret number, with a higher or lower hint after each guess. In reverse mode, the computer uses binary search to guess the number you picked in just a few tries.
How to use
- Choose the mode and range.
- Make guesses or answer higher and lower.
- Get it in as few tries as possible.
When to use it
- Teach binary search in a fun way.
- Play with kids and practice numbers.
- A quick pastime.
Frequently asked questions
What is the best strategy?
Always guess the middle of the range that is left. That cuts the possibilities in half with every guess, so you find a number from 1 to 100 in at most 7 tries. It is the idea behind binary search, used in programming.
Can we switch roles?
Yes. In The computer guesses mode, you think of a number and answer whether its guess is higher, lower or right.
Is it really free?
Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.