Saved in:
Bibliographic Details
Main Authors: Karanjai, Rabimba, Lu, Yang, Chodavarapu, Ranjith, Xu, Lei, Shi, Weidong
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.12080
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915553142112256
author Karanjai, Rabimba
Lu, Yang
Chodavarapu, Ranjith
Xu, Lei
Shi, Weidong
author_facet Karanjai, Rabimba
Lu, Yang
Chodavarapu, Ranjith
Xu, Lei
Shi, Weidong
contents 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
format Preprint
id arxiv_https___arxiv_org_abs_2510_12080
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Evaluating the Quality of Randomness and Entropy in Tasks Supported by Large Language Models
Karanjai, Rabimba
Lu, Yang
Chodavarapu, Ranjith
Xu, Lei
Shi, Weidong
Artificial Intelligence
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
title Evaluating the Quality of Randomness and Entropy in Tasks Supported by Large Language Models
topic Artificial Intelligence
url https://arxiv.org/abs/2510.12080