Opus 5.5 写脚本暴力验证生日悖论并渲染视频
Opus 5.5 在 Claude Code 里用 118 行 Python 模拟 138 万个房间验证生日悖论,26 秒完成模拟与视频渲染。
In a room of 23 people, two of them share a birthday 50.5% of the time. I checked by brute force instead of trusting the formula. The script built 20,000 random rooms for every size from 2 to 70 people, 1.38 million rooms in total, with all 365 days equally likely. 23 people: 50.5% (exact formula says 50.7%) 50 people: 97.1% 70 people: 99.94% The simulation never strayed more than 0.6 points from the exact answer at any room size. 23 was the first size to cross 50%. It feels wrong because you picture someone matching your birthday. But 23 people make 253 different pairs, and any one of them counts. The same math is why random IDs and hashes collide much sooner than intuition says. Claude Opus 5.5 wrote it in Claude Code: 118 lines of Python, standard library plus Pillow for the frames. 26 seconds to simulate and render.
这条是引用着另一条写的:x.com/yumzlef/status/2089307782461722767