Evaluating the Quality of Randomness and Entropy in Tasks Supported by Large Language Models
Not on the map. Why?
Abstract (arXiv)
The rapid advancement of large language model (LLM) technology has led to diverse applications, many of which inherently require randomness, such as stochastic decision-making, gaming, scheduling, AI agents, and cryptography-related tasks. However, the capabilities of LLMs in handling randomness, particularly in generating and utilizing random numbers effectively, remain unclear. This paper investigates the capacity of LLMs for handling tasks that involve randomness through a series of experiments. We designed a set of experiments that consider various factors that can influence an LLM's performance in tasks involving randomness, such as accessibility to external tools, types of tasks, model states (fresh vs. non-fresh), and prompting strategies. The experiments cover a range of tasks, including generating random numbers, generating random strings such as passwords, shuffling items, and evaluating the quality of randomness using entropy and the NIST randomness test-suite. Our findings reveal that while LLMs can generate outputs that exhibit some degree of randomness, their performance is inconsistent and often deviates significantly from the expected behavior. The analysis of the experimental results highlights key limitations and areas where improvement is needed for the LLMs to effectively handle tasks involving randomness
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 15 of its 43 references that are in the map. First posted on arXiv 14 Oct 2025.
Builds on
15 of 43 references.
References · 15
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
- 2019Machine Unlearningcited by 1,020
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
- 2020Improving Reproducibility in Machine Learning Research (A Report from the NeurIPS 2019 Reproducibility Program)cited by 318
- 2023RestGPT: Connecting Large Language Models with Real-World RESTful APIscited by 129
- 2024AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Callscited by 121
- 2024AgentOccam: A Simple Yet Strong Baseline for LLM-Based Web Agentscited by 110
- 2024A Survey on Large Language Model-Based Game Agentscited by 106
- 2024Heads, Tails, and AI Fails: LLMs, Randomness, and Human Judgmentscited by 23
- 2024Depending on yourself when you should: Mentoring LLM with RL agents to become the master in cybersecurity gamescited by 20
3 more
Built on by
Citing papers per year: 2026: 2.
2 papers.