An AI chatbot such as ChatGPT, Claude or Copilot does one thing, over and over: it works out how likely every possible next word is, and then it picks one. The first half of that is deterministic — fixed arithmetic that gives the same result every time. The second half is non-deterministic — a deliberate, weighted roll of the dice. That is why you can ask the same question twice and get two different answers, even though the model finished training long ago and nothing inside it has changed since.

Two kinds of machine: deterministic and non-deterministic

A deterministic system gives the same output for the same input, every time. A calculator is the obvious one: 2 + 2 is 4 today, tomorrow and on every calculator ever made. A spreadsheet formula is deterministic. So is the checksum that tells you a file has not been damaged — the whole trick depends on the same file always producing the same fingerprint. Nearly all traditional software works this way, and when it does not, we call it a bug.

A non-deterministic system can give different outputs for the same input. Rolling dice. Shuffling a deck. Asking three colleagues to draft the same email. Nothing is broken when the results differ; the variation is part of how the thing works.

Deterministic and non-deterministic systems compared Top row: the sum 2 + 2 goes into a calculator three times and comes out as 4 every time. Bottom row: the request Name a colour goes into an AI model three times and comes out as Blue, Teal and Blue. Deterministic — same in, same out three tries 2 + 2 Calculator 4 4 4 Non-deterministic — same in, different out Name a colour AI model Blue Teal Blue
The same input, three times over. A calculator cannot give a different answer. An AI model can — and sometimes will not, which is part of what makes it confusing: two tries can match and the third can differ.

A chatbot looks like the first kind — it is software, running on a computer — but it behaves like the second. To see why, look at what it actually does with your question.

What a language model actually does

The engine inside a chatbot is called a large language model, or LLM. Its job is much narrower than it appears: given some text, predict what comes next.

Your text is first chopped into tokens — pieces about the size of a short word, or part of a longer one. (We will say “word” from here on; the principle is identical.) The model takes everything written so far and produces a score for every token it knows — typically somewhere between tens of thousands and a couple of hundred thousand of them. Those scores are turned into probabilities: how likely each one is to come next.

Then one is chosen, added to the end of the text, and the whole process runs again for the word after that. A 300-word answer is that loop, run about four hundred times.

The four-step loop that writes an AI answer Step 1, the text so far: The cat sat on the. Step 2, the model: frozen after training, same in, same out. Step 3, the odds for the next word: mat 41 per cent, sofa 17 per cent, floor 12 per cent, bed 9 per cent. Step 4, pick one with weighted dice: sofa. This is the random step. The chosen word is added to the text and the loop runs again. 1 · The text so far The cat sat on the … what comes next? 2 · The model frozen after training same in, same out 3 · The odds mat sofa floor bed 41% 17% 12% 9% 4 · Pick one sofa the random step add it, then go again
One lap of the loop writes one word. Steps 2 and 3 are fixed arithmetic. Step 4 is where chance comes in: here the dice landed on “sofa”, which had a 17 per cent chance, rather than the favourite. (Illustrative odds. The other 21 per cent is spread across thousands of less likely words.)

Notice what is missing: there is no step where it looks the answer up. There is no table of questions and replies inside. Every answer is built on the spot, one piece at a time, and each piece is chosen from a list of odds.

“But it has finished training — why isn’t the answer fixed?”

This is the natural objection, and the answer to it is the heart of this page.

Training is the process that sets the model’s numbers — billions of them, called weights or parameters. The model is shown an enormous amount of text with the next word hidden, asked to guess it, and nudged a little each time it is wrong. When training ends, the numbers are frozen. They are a file. They do not change when you chat to it. (A model seems to remember your conversation only because the earlier messages are fed back in as text with every new question.)

So the trained model is fixed — and, in principle, deterministic. The same text in gives the same list of odds out.

But look at what training taught it to produce. Not an answer. A list of odds. Language almost never has a single correct next word. “My favourite colour is…” can be finished a dozen sensible ways. The model learned from millions of people finishing sentences differently, and it captured that spread faithfully. What got trained in is not “the answer” but “the range of reasonable answers, and how likely each one is”.

The simplest way to hold it in your head: training makes the dice; answering rolls them. A weighted die is a perfectly fixed object. It is the same die on every roll. The number that comes up is not.

“The capital of Australia is …”

  • Canberra97%
  • Sydney2%
  • everything else1%

“My favourite colour is …”

  • blue31%
  • green17%
  • red13%
  • purple11%
  • black7%
  • everything else21%
Two questions, two shapes of odds, drawn to the same scale. When one word dominates, you get the same answer almost every time — which is why facts a model knows well are stable. When the odds are spread out, any try can go a different way. Requests to write, suggest, summarise or rephrase are nearly all the second kind. (Illustrative figures, not measurements from a particular model.)

The roll of the dice

The step that picks a word from the odds is called sampling. It does not simply take the favourite. It draws at random, weighted by the odds: a word with a 30 per cent chance gets picked about thirty times in a hundred.

Why not just take the most likely word every time? Because the result reads worse. Always choosing the favourite tends to produce flat, repetitive writing, and with earlier models it produced text that got stuck repeating itself. A measure of randomness is what makes the output read like natural language — and it is why pressing “regenerate” gives you a different draft instead of the same one again.

And one different pick does not stay one different pick. Each chosen word is added to the text and becomes part of the input for every word after it. A different word early on sends everything that follows down a different road.

One different word changes the whole sentence The opening words Our bakery is can be followed by known, with a 38 per cent chance, leading to: known for its sourdough. Or by the, with 22 per cent, leading to: the oldest in town. Or by open, with 15 per cent, leading to: open from 6 am daily. Our bakery is known the open 38% 22% 15% for its sourdough. oldest in town. from 6 am daily.
The snowball. The three sentences differ by one roll of the dice — the first word after “is”. Everything after that word follows from it. Over a few hundred words, small early differences become entirely different answers. (Illustrative odds.)

Temperature: the dial on the dice

How adventurous the sampling is gets controlled by a setting called temperature. It reshapes the odds before the dice are rolled.

  • Low temperature exaggerates the favourite. Likely words become even more likely; long shots almost vanish. The output is more predictable and more alike from one try to the next.
  • A temperature of 1 uses the odds exactly as the model calculated them.
  • High temperature flattens the odds, so unlikely words get a real chance. The output is more surprising — and, pushed far enough, incoherent.
  • Zero means no dice at all: always take the single most likely word.
The same odds at four temperature settings Four bar charts of the same five candidate words. At temperature 0 the favourite has a 100 per cent chance and the others none. At 0.5 the favourite has 68 per cent. At 1 it has 45 per cent, with the others on 25, 15, 10 and 5. At 1.5 the favourite falls to 36 per cent and the least likely word rises to 8. chance of each word being picked 100% 68% 45% 36% 0 0.5 1 1.5 no dice cautious as trained adventurous ← lower temperature · higher temperature →
The same five candidate words at four settings. The green bar is the favourite, labelled with its chance; the grey bars are the four runners-up. Turning the temperature down piles the odds onto the favourite. Turning it up shares them around. (Calculated from odds of 45, 25, 15, 10 and 5 per cent at a temperature of 1.)

Two related settings, top-p and top-k, cut off the long tail of very unlikely words before the dice are rolled, so a one-in-a-million word never gets picked by accident. Our lesson on AI technical terms works through both, and the other settings, step by step.

In a chat app you never see any of this; the provider chooses the settings for you. Developers who connect to a model directly can usually adjust them, though some of the newest models no longer let anyone change the temperature.

One more piece of jargon. Computers cannot really roll dice. Their “random” numbers come from a formula that is started off by a number called a seed; the same seed gives the same run of rolls. Chat apps use a fresh seed every time. Some developer services let you fix it — which makes repeat runs match most of the time, and only most of the time.

Turn the dice off, and it still is not guaranteed

If a temperature of zero means “always take the top word”, then surely the same input must give the same output? Mostly. Not reliably. The companies that make these models say so themselves: Anthropic’s documentation notes that even at a temperature of zero the results will not be fully deterministic, and OpenAI describes its fixed-seed option as a best-effort feature, with determinism not guaranteed.

There are four reasons, and only the first is about arithmetic.

1. Computers round, and the rounding depends on the order

Computers store numbers to a limited number of digits and round off after every step. One consequence surprises most people: the order in which you add numbers up changes the answer, very slightly.

The sumWhat a computer gets
(0.1 + 0.2) + 0.30.6000000000000001
0.1 + (0.2 + 0.3)0.6

A model does billions of these operations for every word, on chips that split the work across thousands of parallel paths. Exactly how the work is split depends on the hardware, and on how many other people’s requests happen to be processed in the same batch as yours — which changes from moment to moment. So the scores come out a hair different from one run to the next.

Usually that changes nothing. But when two candidate words are almost tied, a hair is enough to swap which one is on top — and from there the snowball does the rest.

This has been measured. In 2025, Horace He and colleagues at Thinking Machines Lab asked one openly available model the same question 1,000 times with the temperature at zero. They got 80 different answers. Every one of them was identical for the first 102 tokens; at the 103rd, 992 runs wrote “Queens, New York” and 8 wrote “New York City”, and after that they drifted apart. The same work showed that the effect can be engineered away, at some cost in speed — it is a trade-off the providers make, not a law of nature.

2. The model behind the name changes

Providers replace and update their models. The name on the product stays the same; the numbers underneath do not. An answer you got in March may simply be unavailable in October, because the model that wrote it has been retired.

3. The input was not really the same

You typed the same question. The model did not receive the same text. A chat app wraps your words in a good deal of material you never see, and most of it can change between one try and the next.

What you typed compared with what the model receives On the left, a single box: your question. On the right, the stack of text the model actually receives: hidden app instructions, today’s date, saved memories about you, the chat so far, search results and files, and finally your question. The five layers above your question are added for you, and any of them can change between tries. What you typed What the model receives Hidden app instructions Today’s date Saved memories about you The chat so far Search results and files Your question added for you — and any of it can change between tries Your question
The same question is rarely the same input. Ask again tomorrow and the date has changed. Ask after a long chat and the history is different. Ask with web search on and the results may be new. Each of those changes the odds for every word that follows. (Which layers exist depends on the app and its settings.)

4. Longer chains have more places to diverge

Newer assistants do more than write one reply. They work through a problem step by step before answering, search the web, open files and run tools. Every one of those steps is its own run of the loop, with its own chances to go a different way — and each feeds the next.

Where the variation comes from, at a glance

LayerSame every time?Why
The trained model (its numbers)YesFrozen when training ends. Chatting does not change it.
Turning text into oddsYes, in principleFixed arithmetic — but real hardware rounds it slightly differently from run to run.
Picking a word from the oddsNo, by designA weighted random draw, tuned by the temperature.
The text around your questionOften notHidden instructions, the date, memory, chat history and search results all shift.
The model behind the product nameNot over monthsProviders update and replace models.

Generators and classifiers: not all AI rolls the dice

Everything above is about chatbots, and chatbots belong to one of two broad families of AI. Which family a model is in tells you whether to expect the same answer twice.

  • Generators make something new: text, pictures, audio, video, computer code. Chatbots and image generators are the familiar ones.
  • Classifiers judge something that already exists. Is this email spam? Is this payment suspicious? What is in this photo? What is this house likely to sell for?

The formal names are generative models and discriminative models; in business writing you will more often see generative AI and predictive AI. Strictly, a classifier is a model that sorts things into categories, and one that puts a number on something — a price, a risk score, next month’s sales — is a regression model. The two work the same way for our purposes, so we will call the whole family classifiers.

A generator rolls the dice; a classifier takes the top answer Top row, a generator, here a chatbot: the request Name a colour goes in, the model works out the odds, blue 46 per cent, teal 21 per cent and green 12 per cent, and the chatbot rolls weighted dice, which this time land on Teal, so the answer can differ. Bottom row, a classifier, here a spam filter: an email goes in, the model works out the odds, spam 96 per cent and not spam 4 per cent, and the filter takes the top answer, Spam, with no dice. Generator — a chatbot rolls the dice Name a colour The odds blue teal green 46% 21% 12% Roll the dice Teal can differ Classifier — a spam filter takes the top answer An email The odds spam not spam 96% 4% Take the top Spam no dice
The same first half, a different finish. Both models are frozen after training, and both turn their input into odds. The generator draws from the odds, so its answer can change. The classifier takes the top answer, so its verdict does not. (Illustrative odds.)

Generators: different every time, by design and by circumstance

A generator does not give the same output twice, and there are two sets of reasons.

By design. There is no single right email, and no single right picture of “a dog on a beach”, so a generator is built to choose among many good ones. A chatbot draws each word from the odds, as described above. Most image generators start each picture from a field of random noise, which is why the same prompt gives a different picture every time. (Tools that let you fix the seed will usually give the same picture back on the same software and hardware. On a different machine, even that is not guaranteed.)

By circumstance. Everything in the section on turning the dice off applies as well: arithmetic that rounds differently from run to run, a model that is replaced behind the same name, hidden input that changes, and long chains of steps. Take the deliberate randomness away and those remain.

Classifiers: can be the same every time

A classifier can be deterministic, and most are, because nothing in the job calls for dice. A spam filter is a trained model too. Its numbers were frozen when training ended, and it also turns its input into odds: spam 96 per cent, not spam 4 per cent. But it never draws from those odds. It takes the top answer — or checks the score against a fixed cut-off — and stops. Training made the dice, and nobody rolls them. Show it the same email a thousand times and it gives the same verdict a thousand times.

“Can”, not “always will”. It holds on these conditions.

  • The same version of the model. Retrain it on new data and it is a different set of numbers. The email it let through last month may be flagged this month.
  • Training has its own dice. Many kinds of model use randomness while they are being trained — random starting numbers, examples seen in a shuffled order — so training twice on the same data can give two slightly different models. Each one, once made, is fixed.
  • The rounding still happens. The scores can come out a hair different on different hardware, exactly as they do for a chatbot. Here it almost never matters: there is one decision and no snowball, so only an input sitting right on the cut-off can tip.
  • Nobody built variety in on purpose. Some systems do. A recommendation engine may deliberately mix in items it is less sure you will like — a technique called exploration — to keep its suggestions fresh and to find out what else you like.
  • It is not a generator doing a classifier’s job. Ask a chatbot to sort emails into spam and not spam and it writes its verdict one word at a time, dice and all. It will usually agree with itself. Not always.

And deterministic is not the same as correct. A filter that wrongly flags a supplier’s invoice today will wrongly flag it again tomorrow. What determinism buys is the ability to test: check the model against examples you already know the answer to, and what you tested is what you get.

The two families side by side

FamilyEveryday examplesSame in, same out?
Generators — textChatGPT, Claude, CopilotNo, by design
Generators — pictures, audio, videoAn image or a voice-over made from a text promptNo, by design
Classifiers — sorting and flaggingSpam filters, fraud alerts, recognising what is in a photoCan be, and usually is
Classifiers — scoring and forecasting (regression)Credit scores, demand forecasts, price estimatesCan be, and usually is

A feature or a flaw?

Both. It depends on the job.

For writing, ideas and rephrasing, the variety is the point. You want a second draft to be different from the first. You want ten name suggestions, not the same one ten times. A model with no randomness would be a duller writing partner.

For anything that has to come out the same twice — a total, a date, a yes-or-no on a policy, a step in a process that runs every day — it is a liability, and you need to work around it.

What to do about it

  • Treat an answer as a draft, not a record. If you are going to rely on something an AI wrote, save it. You may never get the identical wording again.
  • Ask twice when it matters. Open a fresh chat and ask the same question. Agreement is not proof, but disagreement on a fact or a figure is a warning that the model is unsure.
  • Give deterministic jobs to deterministic tools. Arithmetic, totals, dates and look-ups belong in a spreadsheet, a calculator or a database. The better assistants now do this themselves: rather than predicting what a sum probably comes to, they write a small program, run it, and report the result. The program is deterministic even though the thing that wrote it is not.
  • Narrow the odds. The more specific your instructions — the format, the length, an example of what good looks like, the document to work from — the fewer plausible ways there are to continue, and the more alike the answers become.
  • If it is built into a process, engineer for it. Fix the exact model version, keep the wording of the prompt identical, turn the temperature down and set a seed where the service allows, and check the output automatically. Then still expect the occasional odd one.
  • Do not confuse consistent with correct. A model can give the same wrong answer every time. Repeatability tells you the model is confident; it does not tell you it is right.

The practical lesson

A lot of the frustration with AI at work comes from expecting a calculator and getting a colleague. Once a team knows which kind of machine it is talking to, it stops being surprised by a different answer and starts using that to its advantage — drafts from the AI, facts and figures checked against the source.

We run hands-on AI workshops for teams, at your office, in Microsoft 365 Copilot, Claude or ChatGPT, built around your real work.

AI workshops Ask us about your team

Common questions

Is AI deterministic or non-deterministic?
Both, in layers. The trained model is a fixed piece of arithmetic: give it the same text and it calculates the same odds for the next word. The step that follows — choosing a word from those odds — is deliberately random. Put together, a chatbot behaves non-deterministically: the same question can produce different answers.
Is all AI non-deterministic?
No. A generator — generative AI, such as a chatbot or an image generator — varies by design, and for other reasons as well: rounding in the arithmetic, model updates and hidden input that changes. A classifier — predictive AI, such as a spam filter or a credit-scoring model — works out its scores and takes the top answer with no random step, so it can give the same output for the same input every time, for as long as the model is not retrained.
What is the difference between generative AI and predictive AI?
Generative AI makes something new: text, pictures, audio, video or code. Predictive AI, formally a discriminative model, judges something that already exists: it sorts it into a category (classification) or puts a number on it (regression). A chatbot is generative; a spam filter is predictive. Generative AI gives varied output by design. Predictive AI can give the same output for the same input every time.
Why does ChatGPT, Claude or Copilot give a different answer each time?
Because each word is chosen by a weighted random draw rather than by always taking the single most likely one, and because every choice feeds into the next, so one early difference changes everything after it. On top of that, the text the model receives is rarely identical between tries: the app adds hidden instructions, the date, remembered details and sometimes fresh search results.
If the model has finished training, why isn’t the answer fixed?
Training fixes the model’s numbers, not its answers. What those numbers produce is a list of probabilities for the next word, and for most questions many next words are reasonable. Training makes the dice; answering rolls them. The dice are the same on every roll. The result is not.
Does setting the temperature to zero make AI deterministic?
Nearly, but not completely. At zero the system always takes the most likely word, which removes the deliberate randomness. But the arithmetic is rounded slightly differently from run to run on real hardware, and when two words are almost tied that is enough to change the pick. Anthropic and OpenAI both say in their documentation that identical output is not guaranteed.
Which answer is right when I get two different ones?
Neither is automatically right. If the difference is wording or style, both may be fine — pick the one you prefer. If they disagree on a fact, a figure or a recommendation, treat that as a sign the model is unsure and check it against a source you trust.
Does the AI learn from my conversation?
Not while you are talking to it. The model’s numbers are frozen. It appears to remember because your earlier messages, and any saved memories, are sent back in with each new question. Whether your chats are later used to train a future model is a separate matter that depends on the provider and the plan you are on — our plan guides set out which do.
Can I make an AI give exactly the same answer every time?
Not in a chat app. You can get close with specific instructions, a fixed format and the same source material. Developers have more control — pinning the model version, lowering the temperature, fixing the seed — but the providers describe even that as best effort. If you need the identical answer every time, save the answer and reuse it rather than asking again.
Is the randomness the reason AI makes things up?
Not really. A model invents things because its job is to produce a plausible continuation, not a verified one. With the randomness removed it would still do that — it would just give the same wrong answer every time. The randomness is useful as a detector, though: ask again in a fresh chat, and things the model knows well tend to come back the same, while shaky ones tend to change.

Sources

All read on 1 October 2026.

Keep learning

Data & encoding How a computer knows a file isn’t broken The other kind of machine: checksums and hashes, where the same input must always give the same output. AI at work What AI can actually do for a small Australian business Where it earns its keep, and where it doesn’t. AI at work How to write a team AI usage policy Ground rules for a tool that will not give the same answer twice.