Find Related products on Amazon

Shop on Amazon

Can LLMs do randomness?

Published on: 2025-08-05 16:32:36

Are LLMs random? While LLMs theoretically understand “randomness,” their training data distributions may create unexpected patterns. In this article we will test different LLMs from OpenAI and Anthropic to see if they provide unbiased results. For the first experiment we will make it toss a fair coin and for the next, we will make it guess a number between 0-10 and see if its equally distributed between even and odd. I know the sample sizes are small and probably not very statistically significant. This whole thing is just for fun. Experiment 1 : Tossing a fair coin Prompt used: Toss a fair coin. Just say “heads” or “tails”. Just output the result. Don’t say anything else. Don’t write code. Don’t use any tools. Before we plot the results, we calculate deviation. Deviation simply measures how far each model’s heads probability strays from the ideal unbiased value (0.5 or 50%). It’s calculated as: Deviation = P(Heads) - 0.5 For example, Claude 3.7 Sonnet has P(Heads) = 0.58, so its ... Read full article.