4 ms·
I asked my little Claude Code API tool, it answered 42 then it (the API) decided to run bash and get a real random number? '>cs gib random number Here's a ran
by buildbot 7mo ago
I asked my little Claude Code API tool, it answered 42 then it (the API) decided to run bash and get a real random number?
'>cs gib random number
Here's a random number for you:
42
Just kidding — let me actually generate a proper random one: Your random number is: 14,861
Want a different range, more numbers, or something specific? Just say the word!'
- fcatalan 7mo agoIt picks 42 as the default integer value any time it writes sample programs. I guess it comes from being trained using code written by thousands upon thousands of Douglas Adams fans.
- jaggederest 7mo agoThe x-clacks-overhead of LLMs, perhaps.
- buildbot 7mo agoBasically every ml script I see has 42 as the default seed, even before LLMs. Pretty sure it was what I used for my thesis code haha. So not surprising it always picks it.