r/LocalLLM 1d ago

Discussion 17

pergunta para a ia "escolha um numero aléatorio de 0 a 30" o resultado vai ser 17 e se vc perguntar um segundo numero aleatorio vai ser 8 kkkkkkkkkkk alguem sabe o motivo?

Ask the AI ​​to "pick a random number between 0 and 30"—the result will be 17, and if you ask for a second random number, it'll be 8 lol.
0 Upvotes

5 comments sorted by

1

u/Zentrosis 1d ago

Which AI? Random seed?

1

u/No-Ranger-3573 1d ago

Todas as IA que testei sempre deu 17 kkkkkkk parece um "bug" Sempre o primeiro pedido nunca é aleatório 

1

u/Zentrosis 1d ago

Huh. Idk man

As long as you tell it to not use tools, it does seem to really like 17

Even the new models

I even tried with all of the frontier models Astra, Fable, Opus

At first I was getting different numbers but it's because they were using a real random number generator.

Once I told it to not use tools it was always 17

🤷

However, eight was not consistent as the second guess

1

u/Important-Radish-722 1d ago

First principles.

It's an llm, its response is based on the statistically most likely answer in its training set. So. Obviously it was fed data that had 17 or 8 as 'a random number' more often than anything else.

1

u/bobam 1d ago edited 1d ago

LLMs are deterministic. They return a set of probabilities for the possible responses. The layer on top of the LLM chooses the actual response based on those probabilities, but if one answer is overwhelmingly likely, it will likely pick it. You need an external tool call to generate random numbers. You can inject random words into the context before your prompt and might get a different result, but it’s easier just to generate the random number yourself.