---
title: "ChatGPT Is Hilariously Bad at Generating Random Numbers"
description: "If you need random numbers generated, steer clear of ChatGPT. Unless you want responses to be less random and more poisoned by human preferences, that is."
date: "2023-03-20"
modified: "2023-03-20"
authors:
  - name: "Frank Landymore"
    job_title: "Contributing Writer"
    link: "https://futurism.com/authors/flandymore"
url: "https://futurism.com/the-byte/chatgpt-random-numbers"
categories:
  - "Artificial Intelligence"
  - "OpenAI"
tags:
  - "chatbot"
  - "chatgpt"
  - "the digest"
---

# ChatGPT Is Hilariously Bad at Generating Random Numbers

![If you need random numbers generated, steer clear of ChatGPT. Unless you want responses to be less random and more poisoned by human preferences, that is.](<https://futurism.com/wp-content/uploads/2023/03/chatgpt-random-numbers.jpg>)
*\<em\>Image: Getty / Futurism\</em\>*

## Ran-Dumb

ChatGPT may be an eloquent speaker, [bullshit artist](<https://futurism.com/cnet-ai-errors>), and [purveyor of misinformation](<https://futurism.com/the-byte/chatgpt-minsinformation-newsguard>) — but a mathematician it is not.

Yes, you may be familiar with accounts of people [convincing ChatGPT that 2+2=5](<https://twitter.com/tasty_gigabyte7/status/1620571251344551938?lang=en>), but OpenAI's chatbot has other, more subtle ways that it will screw up simple, math-related tasks that could easily go unnoticed.

One example? Generating random numbers. According to the findings of Colin Fraser, a data scientist at [Facebook-turned-Meta](<https://futurism.com/facebook-changes-name-meta>), ChatGPT's idea of a random number seems to be less actually random and more a human's idea of random.

https://twitter.com/colin_fraser/status/1636755134679224320

## Too Human

In his testing, Fraser prompted ChatGPT to pick a random number between 1 and 100, and collected 2,000 separate responses. Look at the graph of the distribution of the returned numbers, and it's immediately clear that there are some outliers.

"ChatGPT really likes 42 and 7's," Fraser quipped in a [tweet](<https://twitter.com/colin_fraser/status/1636755134679224320>).

Indeed, the number 42 is astoundingly overrepresented, comprising around a whopping ten percent of all 2,000 responses. Its towering above all other numbers is likely no coincidence, as any nerd or netizen can tirelessly tell you it's the answer to the "ultimate question of life, the universe, and everything," per Douglas Adams' smash hit novel "The Hitchhiker's Guide to the Galaxy."

Simply put, 42 is a meme number online much in the same way that 69 is, which demonstrates that ChatGPT is not, in fact, serving as a random number generator and is instead simply reflecting popular numbers chosen by humans in its vast dataset gleaned from the web — although that decidedly tired sex number is strangely underrepresented here, not even passing the one percent mark, suggesting that it may have been manually suppressed.

The other overrepresented number is 7, mirroring [humans' own fondness for the digit](<https://gizmodo.com/why-do-people-love-the-number-seven-so-much-1666353786>). Numbers between 71 and 79 are curiously prominent, with seven frequently appearing as the second digit in numbers beyond this range, too.

Interestingly, Fraser also found that GPT-4 seems to overcompensate for this by [returning random numbers *too* uniform in distribution.](<https://twitter.com/colin_fraser/status/1636863898589728768>)

## Meme Machine

Overall, none of this reveals some secret nature of ChatGPT. After all, it is a large language model, basically predicting plausible responses rather than actually "thinking" up an answer or sentence.

Still, it's a little dumb that a hyped up chatbot touted as the future of almost everything can't do basic, common tasks. Ask it to plan a road trip for you, and it'll have you make a pitstop at a town that doesn't exist.

Or, in this case, prompt it for a random number and there's a good chance it'll make its decision based on the popularity of a meme.

All of which raises the question: what's the point if ChatGPT simply ends up regurgitating trite fragments of our online monoculture?

**More on ChatGPT:** *[OpenAI's Next-Generation AI Is About to Demolish Its Competition](<https://futurism.com/openai-unveiled-ai-gpt-4>)*

## Author
At Futurism, my work has often centered on bringing a sense of clarity and insight to complex topics ranging from the regulation of emerging technologies to the esoteric ideologies of Silicon Valley executives, while striving not to lose the poetic sense of awe inspired by often-obscure fields like astrophysics and quantum computing. I broke the story of CNET using AI to produce articles that turned out to be riddled with factual errors and plagiarism — a dam-breaking inflection point, as I've reported, that's inspired copycats and endless discourse while beguiling stakeholders ranging from tech giants to purveyors of spam around the web. My work at Futurism has been cited by publications including CBS News, the Los Angeles Times, Vice, Gizmodo, Engadget, the Verge, and Vanity Fair. I grew up in locales ranging from India to China, and now live in the exotic suburbs of Virginia. In my free time, I'm an avid reader of weird sci-fi literature, an aficionado of East Asian cinema, and, regrettably, a relapsed gamer. Allegedly, I’m working on a debut novel, currently untitled.

### Author social links  
[Bluesky](<https://bsky.app/profile/f-w-l.bsky.social>)