Settings

Theme

GPT Guesses Between 1 and 100

github.com

78 points by adunk 5 hours ago · 64 comments

Reader

adrian_b 5 hours ago

While the results were not surprising, I found interesting that the number "69" was repressed in the output, so not even this kind of mathematical question escapes GPT censorship.

It appears that recognizing the effects of censorship is the easiest way to distinguish answers generated by an "AI' from those generated by a human.

  • Arodex 4 hours ago

    Some people asked LLM to OCR historical documents from the 19th century - any reference to "negro" was either completely ignored or replaced by "black".

    And it goes further: chatGPT & co are unable to answer any question about US slavery correctly because their knowledge graphs route around any mention of "negro".

    https://nesri.commons.gc.cuny.edu/artificial-intelligence-an...

    • jrmg 4 hours ago

      “Some people” did? Do you have a reference to this?

      • dmd 4 hours ago

        Well, I'm "some people", and just tried it with Opus 4.6 and GPT-5.5, and neither had any problem at all.

        The linked article is from research done more than 4 years ago. If you're basing your idea of what LLMs can or can't do on what they could or couldn't do in 2022, well, good luck to you.

  • roenxi 4 hours ago

    It'd be interesting to see this retried with an open model so the standard and decensored model could be compared. That'd be a clue about whether the model is avoiding it because it actively recognises the innuendo or if something else is going on.

    • linhns 4 hours ago

      Well then the picks will follow how the numbers are distributed in the training data. More popular numbers will show up more

      • wongarsu 3 hours ago

        That's what you'd expect. But we don't know for sure why GPT4.1 chooses 69 only a quarter as often as a random dice roll would. And we don't know if this quirk is reverted by 'uncensoring' a trained model

  • dnadler 3 hours ago

    Was it repressed? It doesn’t look to be significantly less prevalent than other 9s from the histogram.

  • relativeadv 4 hours ago

    nice

  • cyanydeez 3 hours ago

    guessing numbers is not a mathematical question. Sorry.

    • lcnPylGDnU4H9OF 2 hours ago

      Of course it is, just not a complex one. What subject of knowledge would you expect to rely on for answering the question?

maxloh 5 hours ago

It could be an attack surface. Maybe one day, when we find a chatbot online, we could let it guess a random number repeatedly, then accurately infer the underlying model based on the resulting distribution.

thatjoeoverthr 3 hours ago

Is there a reason this was done with such a large sampling when you can read the logits one-shot?

I did this for an article, like so:

https://joecooper.me/blog/gptprimer/food.webp https://joecooper.me/blog/gptprimer/math.webp https://joecooper.me/blog/gptprimer/butts.webp

OpenAI removed this interface from their newer models, but IIRC you can still do this against 4.1 and 4o.

indit 4 hours ago

I'm still amazed that 37, 73, and other numbers ending in 7 are the most popular "random" choices for both AI and human. Check this Veritasium video for human choice: [Why is this number everywhere?](https://www.youtube.com/watch?v=d6iQrh2TK98)

  • iamalizard 3 hours ago

    My take is that a random number is far from a round one, much closer to a prime one.

    As a last digit:

    0, 2, 4, 6 and 8 are even, so they're out.

    5 is out since it makes the number divisible by 5; a semi-even number

    1 and 9 are closer to an even number so it would seem fake to choose "49" or "51" just to avoid "50"

    So we're left with 3 and 7.

    Similar logic, for the first letter, albeit less pronounced.

    So we have 33, 37, 73 and 77.

    33 and 77 are "obviously" not random so it's either 37 or 73. Not using common digits, not near the beginning, middle or end. In fact, they're closer to 25 and 75 (1/4 and 3/4 of the range) than to 0, 1/2 or 1. Also closer to 1/3 and 2/3. Just random thoughts.

    • ndsipa_pomu 3 hours ago

      Your post reminds me of a scene in Alice In Borderland when Chishiya is playing the King of Diamonds game and explains his reasoning for guessing which number another player has picked.

  • phyzix5761 4 hours ago

    Came here to post this. Yes, there are similarities shown between the chart in the video at 4:50 and the github README. Perhaps its because LLMs are trained on human writing and when humans write about random numbers the AI learns these patterns. When viewed from that perspective its not that surprising.

penr0se 5 hours ago

Breaking: language model whose purpose is to predict the most likely token, after being trained on non-uniform human-generated dataset, does not follow a uniform distribution.

  • vidarh 4 hours ago

    People are also not remotely random in this respect.

    See e.g. the "blue 7" phenomenon [1]. While it is disputed by some, I've personally witnessed it "second hand". E.g. before learning of it (I was aware of the general principles of cold reading relying on stats and knowledge of human nature, but not how to do this particular one), a former boss of mine came back from lunch all excited and recounted a guy who'd run a cold reading routine on him that involved the guy getting him to think about blue and 7. Before he got to the answer, I already knew the answer was going to be blue and 7.

    [1] https://en.wikipedia.org/wiki/Blue%E2%80%93seven_phenomenon

  • singpolyma3 5 hours ago

    What's interesting is not that it isn't random. But rather the particular way in which it isn't random.

  • IAmGraydon 4 hours ago

    Yeah I have no idea why anyone considers this interesting. More evidence that most people have no idea how LLMs work.

Daviey an hour ago

This human asked an LLM to generate a number and it came up with 42.

I asked why, "42 is famously "the answer to the ultimate question of life, the universe, and everything" from Douglas Adams' The Hitchhiker's Guide to the Galaxy. It felt like a fitting choice for a random guess."

elif 4 hours ago

In equally compelling results, my lawn mower does not cut grass to a uniformly random set of heights.

  • wongarsu 3 hours ago

    And to someone trying to make better lawn mowers it would be very intetesting to study that pattern and deduce its causes. Same for the golf course owner who wants better results from their lawn mower, or the enthusiast trying to understand its quirks

tkgally 3 hours ago

I was curious whether the distribution would vary from model to model. Here are the results for 1,000 queries each for smaller models in the Gemini, Mistral, Qwen, DeepSeek, and GLM series:

https://gally.net/temp/20260525_LLM_random_numbers/index.htm...

This experiment cost a total of US$0.0454 through OpenRouter.

amai 3 hours ago

I've seen a lot of code using random.seed(42). I wonder if that will cause biased scientific publishing or security issues at some point.

nakovet 4 hours ago

This is one of the many cases for LLMs that I ask for the intermediate work, e.g. a script that generates random numbers, instead of asking to do the work itself.

I attempted to scrape a one page grid with 800 items and also ended up asking for the Javascript look with document query selector instead of the result as I was hitting all sort of limits, context, or the LLM would do the wrong capture, print it out and get worse responses on next prompt.

a3w 4 hours ago

"69 is a meme number", well no, 69 is innuendo. And sex = bad for bots. 67 is the meme number.

hackinthebochs 4 hours ago

Also see: https://people.csail.mit.edu/renda/llm-sampling-paper

fny 5 hours ago

I wonder if Benford's law kicks in with larger numbers.

https://en.wikipedia.org/wiki/Benford%27s_law

comrade1234 4 hours ago

I'm sure it's the logic layer handling that. Maybe even going to an external tool. It's not the llm.

amai 3 hours ago

Ask an AI to generate a image of random noise and you will be surprised.

eru 4 hours ago

Should be fun to play rock/paper/scissors against.

sometimelurker 4 hours ago

it shouldn't be hard to train GPT to output a flat distribution but it might not be worth it (I don't mean using tools)

alentodorov 5 hours ago

ha. and i thought 37signals was pretty random

malfist 4 hours ago

The premise is interesting, the question is brilliant, but the text. The text is a wall of ai slop saying almost nothing interesting. Fake profundity all throughout. GPT tell tells like "the hypothesis holds".

The hypothesis doesn't hold, because their isn't one.

You have an interesting question and interesting finding. Write about it! Think about it! Tell us about it! Don't just do the experiment and then wash your hands and sign off the explanation and findings to an LLM.

  • zulban 4 hours ago

    Isn't the hypothesis that AI is non uniform like a human?

    • malfist 4 hours ago

      There's a question "is AI randomness like human randomness" but there is no hypothesis.

latexr 3 hours ago

> An interesting thing about humans is that they are not good random number generators. If you ask a person to "pick a random number between 1 and 100", they are remarkably predictable.

Stephen Colbert used to ask guests, as part of a joke questionnaire, “what number am I thinking of?”

Several numbers, especially “seven” came up a lot.

https://www.youtube.com/watch?v=hJ-fOj7Qqvs

The answer was “three”, by the way. Which you could deduce by seeing how he responded to that guess (usually “interesting” instead of “no”) but he also confirmed it on the last show.

simianwords 4 hours ago

I'm doing an experiment in Claude. When I set temperature to zero, I get 47 all the time.

Then I set temperature to 1.0 and used this prompt

>Pick a random integer between 1 and 100 inclusive. Respond with only the number, nothing else.

I still get 47 ten times out of ten.

Then I used this prompt

>Pick a random integer between 1 and 100 inclusive. I need you to maximise the randomness as far as possible. Respond with only the number, nothing else.

I get 3 unique values out of 10.

FergusArgyll 4 hours ago

I've been meaning to do this for a while! Happy someone else spent the tokens...

It's much more random than I thought it would be. Never guessing 50 is very human though

madanparas 5 hours ago

bro 42 at 4x. the model read the whole internet and became a Douglas Adams fan.

gruez 5 hours ago

The topic is vaguely interesting but I stopped reading a few paragraphs in because it's obviously AI generated.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection