News for hackers. Stuff that matters.
Re:I asked Claude for 37,500 random names, and it can't stop... by basch on Wednesday February 25, 2026 @03:00PM (#47157008)
Since its unclear whats going on, Gemini first gave me some python.

import random

random_number = random.randint(1, 10) print(f"{random_number=}")

Then it stated the output.

Code output random_number=8

"This time, the dice landed on 8."

Code output random_number=9

"Your next random number is 9."

I would guess its not actually executing the python it displayed? Just a simulation, right?

Re:I asked Claude for 37,500 random names, and it can't stop... by ChadNauseam on Wednesday February 25, 2026 @03:04PM (#47157066)
I would be surprised if Gemini could not run python in its web interface. Claude and ChatGPT can. And it makes them much more capable (e.g. you can ask claude to make manim animations for you and it will)
Re:I asked Claude for 37,500 random names, and it can't stop... by simlevesque on Wednesday February 25, 2026 @03:26PM (#47157348)
It did run python code when I asked for a random number: https://gemini.google.com/share/dcd6658d7cc9

Then I said: "don't run code, just pick one" and it replied "I'll go with 7."

Re:I asked Claude for 37,500 random names, and it can't stop... by basch on Wednesday February 25, 2026 @03:40PM (#47157539)
But .. how do you know? It says it wrote code, but it could just be text and markdown and template. It could just be predicting what it looks like to run code.

Mine also gave me 42 before I specified 1-10.

Does it always start with 42 thinking its funny?

Re:I asked Claude for 37,500 random names, and it can't stop... by simlevesque on Wednesday February 25, 2026 @03:56PM (#47157747)
Click on the link I provided and you'll know why I know. It's not markdown, it shows the code that was ran and the output.
Re:I asked Claude for 37,500 random names, and it can't stop... by BugsJustFindMe on Wednesday February 25, 2026 @05:52PM (#47159206)
Be careful. Output formatting doesn't prove what you think it does. Unless you work inside google and can inspect the computation happening, you do not have any way to know whether it's showing actual execution or only a simulacrum of execution. I've seen LLMs do exactly that and show output that is completely different from what the code actually returns.
Re:I asked Claude for 37,500 random names, and it can't stop... by colonCapitalDee on Wednesday February 25, 2026 @07:01PM (#47159900)
You can literally click "Show Code"
Re:I asked Claude for 37,500 random names, and it can't stop... by BugsJustFindMe on Wednesday February 25, 2026 @08:16PM (#47160537)
Yes. "Show Code". Not "Show CPU cycles". There's a difference. Writing code is not the same as running code. It looks to you like it ran the code. But you have no proof of that. And I've seen many times LLM systems claiming that they ran some code and generated output but the output not being what the shown code actually produces when run.
Re:I asked Claude for 37,500 random names, and it can't stop... by xVedun on Thursday February 26, 2026 @12:22AM (#47162199)
Maybe the only way to be sure is to have it generate (not stable diffuse) an image with the value in there.
Re:I asked Claude for 37,500 random names, and it can't stop... by BugsJustFindMe on Thursday February 26, 2026 @02:28AM (#47162988)
You cannot know that anything it shows you was generated by executing the code and isn't merely a simulacrum of execution output. That includes images.
Re:I asked Claude for 37,500 random names, and it can't stop... by Sophira on Thursday February 26, 2026 @02:15PM (#47170677)
Yes, you can. In my experience, models do not tend to write their own HTML output. They tend to output something like Markdown, or a modified version of it, and they wouldn't be able to write their own HTML that the browser would parse as such.
Re:I asked Claude for 37,500 random names, and it can't stop... by Sophira on Thursday February 26, 2026 @02:16PM (#47170705)
In my experience, models do not tend to write their own HTML output. They tend to output something like Markdown, or a modified version of it, and they wouldn't be able to write their own HTML that the browser would parse as such.
Re:I asked Claude for 37,500 random names, and it can't stop... by BugsJustFindMe on Friday February 27, 2026 @03:15PM (#47184976)
What, in your view, does sending one markup language instead of another markup language tell you about whether the back-end executed some code or only pretended to?

The front-end display is a representation of what the back-end sends it. Saying "but the back-end doesn't send HTML" is as meaningless as saying that about literally any other SPA website that builds its display from API requests that respond with JSON.

Re:I asked Claude for 37,500 random names, and it can't stop... by sunaookami on Thursday February 26, 2026 @08:34AM (#47165865)
There is being critical of something and then there is being a conspiracy theorist. Code Execution is a well-known feature of Gemini, ChatGPT, etc. and it's always shown in special blocks and it runs inside a sandbox.
Re:I asked Claude for 37,500 random names, and it can't stop... by wasabi991011 on Thursday February 26, 2026 @11:24AM (#47168179)
This was a pretty easy hypothesis to test: I asked Gemini to generate 1000000 base-64 random characters (which is 20x more characters than it's output token limit).

It wrote code and outputted a file of length 1000000 and with 6 bits of entropy.

You can probably ask for a longer stringand do a better statistical test if it isn't convincing enough for you, but I'm pretty convinced.

Transcript: https://g.co/gemini/share/1eae0a4bb3db

Re:I asked Claude for 37,500 random names, and it can't stop... by hhh on Wednesday February 25, 2026 @03:40PM (#47157542)
Most modern models can dispatch MCP calls in their inference engine, which is how code interpreter etc work in ChatGPT. Basically an mcp server that the execution happens as a call to their ai sandbox and then returns it to the llm to continue generation.

You can do this with gpt-oss using vLLM.