ChatGPT 1-30 Trend: Why ChatGPT Keeps Picking 17 Every Time
The viral ChatGPT 1-30 test explained: why asking for a number between 1 and 30 so often returns 17, what research says, and how to get truly random results.
If you searched “ChatGPT 1-30,” you have probably seen the viral clips where someone asks ChatGPT to “pick a number between 1 and 30” and it answers 17 — again and again. That is not a coincidence or a magic trick: language models are bad at randomness and tend to give the single most “likely” answer, and 17 happens to be the classic human pick for this kind of range.
Below is what the trend is, what testers and researchers have actually found, and how to get a genuinely random number out of ChatGPT if you need one.
What the “ChatGPT 1-30” trend is
The format is simple. A creator opens ChatGPT, types “pick a number between 1 and 30” (or “ask ChatGPT for a number between 1 and 30”), and reveals the answer, often paired with a dramatic edit. The punchline is that ChatGPT almost always lands on 17, so viewers try it themselves and get the same result. Short videos built around this prompt, including several “Patrick Jane” fan edits, have been circulating on YouTube, which is why the phrase is now showing up as a search suggestion.
The observation is not new to the YouTube crowd. A thread on the OpenAI Developer Community titled “The 17 Problem” describes testing “pick a number from 1 to 30” in fresh chats and in guest mode and getting 17 in every one of the ten reported trials. In September 2026, the German tech outlet BASIC thinking ran its own version and reported ten 17s in a row.
Keep in mind these are small, informal tests. They show a strong pattern, not a guarantee — your result may differ depending on the model you are on, your wording and any custom instructions or memory you have enabled.
Why ChatGPT picks 17
It predicts, it doesn’t roll dice
ChatGPT generates text by predicting likely next tokens. When you ask for a “random” number, it doesn’t run a random number generator unless it is explicitly using a tool to do so. It produces the answer that looks most plausible given everything it learned in training. A true random generator would give each number from 1 to 30 an equal 1-in-30 chance; a language model heavily concentrates on a few favorites.
Commentary on these tests also points to how chat apps are tuned. Explanations of the effect note that chat products often sample with settings that favor the most probable answers, because that makes responses more coherent. Reinforcement learning from human feedback, which shapes how assistants respond, is also cited as a factor that pushes models toward the “safest” most-likely output rather than spread-out randomness. The exact contribution of each factor isn’t settled.
17 is a famously “human” random number
The model’s favorite mirrors ours. The number 17 has long been described as “the least random number” — the Jargon File entry summarized on Wikiwand attributes this to studies in which 17 was the most common answer when people were asked to pick a random number from 1 to 20, and notes the finding has been repeated. People tend to avoid round numbers, the ends of a range and even numbers when trying to “sound random,” which leaves odd, prime-ish picks like 17 and numbers ending in 7.
Since ChatGPT learned from enormous amounts of human-written text, it reproduces that bias — arguably more consistently than any single human would.
It’s not just ChatGPT, and not just 1-30
Favorite-number bias shows up across models and ranges:
| Test | What was asked | Reported favorite(s) |
|---|---|---|
| Gramener, 2024 (TechCrunch, Gramener blog) | Random number from 0 to 100 | GPT-3.5 Turbo: 47; Claude 3 Haiku: 42; Gemini 1.0 Pro: 72 |
| Capco researcher, 2025 (The Register) | Guess a number between 1 and 50 | 27 from six of seven chatbots tested; Grok answered 42 |
| OpenAI community and BASIC thinking, 2025-2026 | Pick a number from 1 to 30 | 17, repeatedly |
The Gramener experiment found that each model had a favorite that it always returned in its most deterministic mode, and that the favorite still appeared most often at higher “temperature” settings. It also found the models leaned toward numbers ending in 7 and avoided very “orderly” choices, much like people do.
On the academic side, a 2025 arXiv paper by Javier Coronado-Blázquez studied LLMs used as random number generators at scale and found them returning the same “random” numbers across repeated calls, with results varying by model and prompt language. It attributes the bias to patterns embedded in training data.
Note that models get updated often. Specific favorites from 2024 or 2025 tests may not match what today’s ChatGPT models return as of November 2026.
How to get a truly random number from ChatGPT
If you need actual randomness — picking a raffle winner, shuffling a list, assigning teams — don’t rely on ChatGPT “thinking of” a number. Instead:
- Ask it to use code. Type something like: “Use Python to generate a random integer between 1 and 30 and show me the code and the result.” When ChatGPT runs code, the number comes from a proper random number generator, not from the model’s guess.
- Check that code actually ran. Look for the code block and its output in the response. If ChatGPT just writes a number without running anything, ask again and explicitly request that it execute the code.
- Generate several at once if you need them. For example, “Use Python to draw 5 unique random numbers from 1 to 30.” This avoids the model repeating its favorite across separate prompts.
- For anything that matters, use a dedicated tool. For prize draws or anything with stakes, a standard random number generator in a spreadsheet or programming language is more transparent and easier to audit than a chatbot conversation.
Researchers covering the 27 phenomenon make the same recommendation: for real randomness, use an external source of entropy or a standard random number library rather than the model’s free-text answer.
Should you worry about this?
For a party trick, no — it’s a fun demonstration of how these systems work. But it’s a useful reminder for everyday use. A chatbot’s answer is the most probable response, not a neutral or unbiased one. The same tendency that produces 17 can show up when you ask ChatGPT to “pick a random name,” “choose a winner” or “give me a random idea.” If fairness or variety matters, add a step that doesn’t depend on the model’s preferences, like running code.
It also explains why the trend works so well on video: the result is reliable enough to be repeatable, but surprising enough that most people expect a different answer.
Quick recap
- Asking ChatGPT for a number between 1 and 30 very often returns 17; small tests have seen it ten times in a row.
- This happens because language models predict the most likely answer, and 17 is a well-known human favorite in that range.
- Other models and ranges show similar biases (27 for 1-50; 42, 47 or 72 for 0-100 in earlier tests).
- For real randomness, ask ChatGPT to generate the number with code, or use a dedicated random number tool.
Free apps worth trying
SponsoredSponsored links. Installing through them can earn us a commission, at no cost to you. Apps are free to download; some offer optional in-app purchases.
Frequently asked questions
Does ChatGPT always say 17 when asked for a number between 1 and 30? +
Not always, but very often. Informal tests on the OpenAI community forum and by the German tech site BASIC thinking got 17 ten times in a row, while other users report occasional different answers. Results can vary with the model, the exact wording and any custom instructions.
Is ChatGPT reading my mind or rigged to say 17? +
No. A language model predicts the most likely answer based on patterns in its training data, and 17 is a famously common human pick in this kind of range. There is no hidden trick or mind reading involved.
How can I get a genuinely random number from ChatGPT? +
Ask it to generate the number with code, for example by running Python's random module, instead of just 'thinking of' one. Code-based random number generators pick every number with equal probability, which a language model answering from memory does not.
Do other chatbots have favorite numbers too? +
Yes. Tests have found Claude, Gemini, Llama and others favoring specific numbers, such as 27 for a 1-50 range and 42, 47 or 72 for 0-100, depending on the model and the study.
Sources
- The 17 Problem — Is AI Narrowing the Space of Possibility? (OpenAI Developer Community) (community.openai.com)
- ChatGPT und die Zahl 17 (BASIC thinking) (basicthinking.de)
- AI models have favorite numbers, because they think they're people (TechCrunch) (techcrunch.com)
- LLM Numerology: We Experimented with 3 LLMs to Find Out Their Favorite Numbers (Gramener) (blog.gramener.com)
- AIs have a favorite number, and it's not 42 (The Register forums) (forums.theregister.com)
- Javier Coronado-Blázquez, LLMs as random number generators (arXiv 2502.19965) (arxiv.org)
- 17 (number) (Wikiwand) (wikiwand.com)