LLMs Can’t Roll Dice

📰 Medium · Cybersecurity

LLMs can't generate true random numbers, which is a problem for generating keys or random strings, and instead predict statistically likely outputs based on training data

intermediate Published 19 Apr 2026
Action Steps
  1. Test an LLM like ChatGPT to generate a random number between 1 and 10 to see the predicted output
  2. Analyze the results to understand how the LLM's statistical likelihood predictions differ from true randomness
  3. Use alternative methods for generating truly random numbers, such as hardware random number generators or cryptographically secure pseudorandom number generators
  4. Evaluate the security implications of using LLM-generated random numbers in different applications
  5. Implement additional security measures to mitigate the risks associated with LLM-generated random numbers
Who Needs to Know This

Developers and cybersecurity professionals working with LLMs should be aware of this limitation to avoid using LLM-generated random numbers for security-critical applications

Key Insight

💡 LLMs are not designed to generate true entropy and instead predict outputs based on statistical likelihood

Share This
🚨 LLMs can't roll dice! They predict statistically likely outputs, not true random numbers. Be cautious when using LLMs for security-critical applications 🚨
Read full article → ← Back to Reads