Contents
What is the best number to choose between 1 and 10?
The most popular picks are in fact 69, 77 and 7 (in descending order). It’s well known amongst purveyors of conjuring tricks and the like that if you ask people to pick a number between 1 and 10, far more people choose 7 than any other number.
How do you generate a random number from 1 to 10?
- using namespace std;
- int main()
- srand(time(0)); // Initialize random number generator.
- cout<<“Random numbers generated between 1 and 10:”<
- for(int i=0;i<10;i++)
- cout << (rand() % 10) + 1<<” “;
- return 0;
Is there only one number under 1, 000 you can guess?
There is only one such number, and so your tenth, and final guess, is 334, your friend’s number. This process will work for any number between 1 and 1000, and you will always find the number within 10 guesses.
What’s the best way to guess a number?
Your Second Guess :You know that the number is between 1 and 500, so you again take the halfway point between these two, and you guess 250. Now your friend tells you your guess is too low, so you know the number is somewhere between 250 and 500.
How do you tell someone to pick a number?
Tell someone to pick a number between 1 and 1,000. Your goal is to guess the number. For each guess you make, your friend tells you one of three things: you guessed the number, your guess was high, or your guess was low. Amazingly, if you guess properly, it is possible to get to any number your friend chooses in 10 or fewer guesses.
How many numbers can you guess in two steps?
Now your friend tells you your guess is too low, so you know the number is somewhere between 250 and 500. In just two steps, you have knocked out 750 numbers, and are just looking at about 250 numbers, a quarter of our original set. Keep Doing This: Your next guess is halfway between 250 and 500, or 375.