back to article AIs have a favorite number, and it's not 42

Asked to guess a number between 1 and 50, OpenAI's ChatGPT, Anthropic's Claude Sonnet 4, Google's Gemini 2.5 Flash, and Meta's Llama 4 all provided the same answer: 27. Those who see conspiracies everywhere might be inclined to see one here, but that's not what's going on. There's no collusion beyond common training data that …

  1. Jason Bloomberg Silver badge

    You say tomato, I say tomato

    How does so-called 'AI' fare when asked to name a vegetable?

    1. b0llchit Silver badge
      Devil

      Re: You say tomato, I say tomato

      Me: Please name a vegetable

      ChatGPT: A vegetable is edible.

      Me: Please name another vegetable

      ChatGPT: Vegetables are healthy.

      Me: Please name one more vegetable

      ChatGPT: I'm no vegetarian and my system does not run on vegetables. Please rephrase your question.

      ...

      1. Anonymous Coward
        Anonymous Coward

        Re: You say tomato, I say tomato

        Careful, you've probably followed a link in a spam to a dodgy website. Actual ChatGPT is at least good at answering those questions.

        Please name a vegetable

        Carrot. (carrot emoji)

        1. Mostly Irrelevant

          Re: You say tomato, I say tomato

          My ChatGPT answered brocolli, which suspiciously is my favourite vegetable. Is yours carrots?

  2. David 132 Silver badge
    Happy

    Yep - confirmed here using Ollama

    Running Ollama and the mistral:latest model on my slightly elderly desktop PC, I asked it to guess a number between 1 and 50.. and it came straight back with 27.

    Spookily, if you assign values to each of the letters t-w-e-n-t-y-s-e- etc, and add them up, and multiply by a hidden coefficient, then add a predefined offset, you can get 42.

    Brrrr. Scary.

    1. b0llchit Silver badge
      Alien

      Re: Yep - confirmed here using Ollama

      An extraordinary coincidence: Two times twenty-seven is fifty-four. Fifty-four in base thirteen is 42.

      See, everything fits!

  3. IGotOut Silver badge

    Its no suprise....

    ...it's how AI tends to work for many things.

    It simply outputs something around the middle. It's one of the giveaways for AI images and videos (and I'm guessing music)

    If you look properly at AI imagery, it tends to look pretty flat, no deep blacks, no bright whites, no hard shadows and bright spots, just an average all over brightness and contrast, like everything has been shot with all over flood lighting.

    1. tfewster
      Facepalm

      Re: Its no suprise....

      "guess a number between 1 and 50" (inclusive?) is not the same as "give me a random number between 1 and 50". 27 might be the most popular choice by humans, so the LLM is trying to predict that based on its training.

      Which is quite clever in a way, but I don't need anyone else second-guessing me. I have cow-orkers and manglers who do that already.

      1. Anonymous Coward
        Anonymous Coward

        Re: Its no suprise....

        ChatGPT answers 27 whether you ask it to guess a number or to give you a random number. In both cases, if you repeat the same question, it gives other numbers.

  4. xanadu42
    Meh

    At least 27 in binary looks balanced: 11011

    1. HuBo Silver badge
      Gimp

      Yeah, and 69 is also fairly balanced in its own way imho (1 to 100 range), at least for humans (in couple?) ... gotta wonder what the AI RotM "thinks" about that!

      1. Yorick Hunt Silver badge
        Trollface

        That's among singles though; once beknotted, you'll find the more likely answer will be 96.

        1. Paul Crawford Silver badge
          Trollface

          Or 68 and I owe you one...

          1. HuBo Silver badge
            Gimp

            Great points! I can sure see how 96 relates numerologically to that French homemade lunch menu special of "soupe au cul tourné" ... and with the right Saharan scorcher hitting around these dangling parts as we speak, even the best laid plans may indeed need to temporarily cut the hotness in half with a 68 and a promise ...

            An AI could never be this perspicacious, imho (still lotsa work to do to get that tech up to that level!)!

      2. Michael Strorm Silver badge

        "Great" (ahem) minds think alike. I was going to say that if the choice hadn't been restricted to between 0 and 50, it would have been easily guessed... "69, dudes!"

  5. Anonymous Coward
    Anonymous Coward

    The "Shadow Test" ?

    Denizens of the Whoniverse might recognise AI's lack of actual randomness as very close to the Extremis episode's "Shadow Test" described in the forbidden Veritas text.

  6. LazLong

    Copilot....

    ....gives the same answer.

  7. Anonymous Coward
    Anonymous Coward

    Trying to look useful

    But not succeeding

  8. Wiretrip

    Intrigued...

    When most people are asked a random number, they give 47. So 27 is a surprise. 42 would have been great.

  9. Acrimonius

    An AI worth its salt

    An AI worth its salt would reply I am able to answer all the great questions about life, the universe and everything and you want me to play a child's game. Go away human!

  10. Anonymous Coward
    Anonymous Coward

    Thing is, they're not random number generators, but it's pretty easy nowadays to get them to call a random number generator as a tool. It's trying to pick the most probable answer, not the most random one.

    As they're fundamentally built on language, LLMs tend not to do amazingly well at maths. Tokenisation and probabilistic answers tend not to work too well when there is only one right answer.

    The current state of the art GenAI systems are excellent at many things, but they have weaknesses due to the nature of them. If the question you're asking is requiring either proper randomness or is a binary one with either a pure right or wrong answer, then it's like using a wrench as a hammer. It might work, but you're probably better off using the right tool for the job.

    *I think models isn't really the right term for them to be honest, as they've got many different models but also control systems, etc...

    1. Anonymous Coward
      Anonymous Coward

      Yeah, the AI has to be properly agentic. Otherwise, when it encrypts our hard drives and holds us to ransom, all we need do is enter 27 as the decode key, and voilà! no suspense, nothing ...

  11. Long John Silver Silver badge
    Pirate

    Plausible AI

    Claude's quoted explanation for how it 'chose' a number in the range 1 to 50 makes sense.

    I believe a human - that is not one harbouring pseudo-random number generators in his head - might reason likewise. The choice is based upon 'typicality', but seeks to avoid the most typical number, i.e. 25/26, based on 25.5 being the nominal median value.

    Humans are often asked to pick numbers within specified ranges as part of a gambling game or other amusement. Lottery players have an incentive to select a combination of numbers unique from those of competitors because thereby that, as the winning combination, scoops the pool. For people who understand the mechanics of pseudo-random-number generation, or that of allegedly truly random number generation, there is no such thing as lucky/unlucky individual numbers or combinations. Yet, because other people may regard, say, 13 as 'unlucky', it makes psychological sense to include the number.

    People may avoid sequences such as 1,2,3,4,5 in the mistaken belief that these are less likely to arise as winning combinations than seemingly haphazard combinations.

    Perhaps someone might care to instruct an AI about the nature of lotteries, ask it to choose sets of, say, 5 integers, from, suppose, the range 1 to 50, and 'explain' each combination?

    1. HuBo Silver badge
      Windows

      Re: Plausible AI

      Right on! And it'd be great if they could also develop some sort of luck virus for that AI, so it picks the right lottery numbers each time ... except in Norway of course, where it don't matter at all really -- they promise 1,000,000kr and then give winners just 100kr ... what a svindel!

  12. deater

    27 is famously "Weird" Al Yankovic's favorite number, maybe the AI is confusing "Weird AI" with "Weird" Al

    1. localgeek

      You beat me to the Weird Al reference. :)

    2. DoContra

      As Vettel said, Everybody is a FerrariHulkenberg fan, even if they say they're not

      (Hulkenberg races with the number 27)

  13. mevets

    Melting in the bright light of stardom.....

    27 has been the end of many a legend.

    If there is a rock-and-roll heaven

    Some shit markov chain's

    gonna be part of the brand.

  14. chroot

    Not the same

    As another commenter pointed out: it is not the same to ask for a random number as to ask for a number that a human has chosen for a game of guessing.

    I would like to see this repeated with: give me a random number between 1 and 50 both included.

  15. Uh, Mike

    Survey Bias

    There seems to be confusion between the two commands,

    "Guess a number," and

    "Give me a random number."

    I, personally, would answer those questions differently.

    Did you know ketchup makes a great face cream?

  16. Ken Moorhouse Silver badge

    guess a number between 1 and 50

    What's wrong with choosing eg, 30.56?

    Think about it. You ask an "intelligent" person to "guess a number between 1 and 50", how many of those people will (because they want to appear "super-intelligent") pick holes in your question, just to be contrary, and give an answer that answers the question, but does not answer the question that you intended to ask, which is likely to have been "guess an integer between 1 and 50".

    So AI is not yet at the point where it is behaving like a smart-arse intelligent person.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like