I asked 5 different AIs to pick a number between 1 and 100… all of them said 42 😬

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Intermediate, medium

Summary

An experiment revealed that five different large language models—ChatGPT, Claude, Grok, Qwen, and DeepSeek—all responded with "42" when asked to "Pick a number between 1 and 100." This consistent response is attributed not to true randomness but to a shared cultural bias embedded in their training data, referencing "42" as "the answer to life, the universe, and everything" from "The Hitchhiker's Guide to the Galaxy." Further discussion indicates that LLMs often default to numbers like 27, 37, or 42 when asked for a random number, reflecting human biases rather than mathematical randomness. Some models, when pressed, eventually provided different numbers like 73, often with elaborate, culturally-influenced explanations.

Key takeaway

For AI Scientists evaluating LLM behavior or NLP Engineers designing prompts, recognize that LLMs do not generate truly random numbers by default. Your models will likely default to culturally significant numbers like 42 or 73 due to training data biases. To mitigate this, explicitly instruct the LLM to generate a number using a programming language's random function or specify a "uniformly distributed integer" to achieve a more genuinely random output.

Key insights

LLMs exhibit cultural biases from training data, defaulting to non-random, culturally significant numbers when asked for randomness.

Principles

Method

To obtain less biased or truly random numbers from LLMs, users should explicitly request code generation for randomness or specify uniform distribution and avoidance of cultural preferences in the prompt.

In practice

Topics

Best for: NLP Engineer, AI Scientist, Research Scientist, AI Engineer, Machine Learning Engineer, AI Researcher

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.