Majkey25

Ask about my work

Answers use my public projects, profile and approved public sources.

Questions and attachments go to OpenAI through Cloudflare. OpenAI may use shared content to train models. Attachments are not saved in local history. Do not share sensitive data. Privacy

~ / work / 34

Buffon's needle

Monte Carlo simulation of Buffon's needle

area
Earlier and small tools
stack
JavaScript · Chart.js
as of
Nov 2026

Problem

Make Buffon's needle problem visible by setting its theoretical crossing probability beside a simulation.

Approach

A static page computes the theoretical intersection probability and runs an animated Monte Carlo simulation with a seeded random generator, so runs can be repeated exactly. Throws are drawn on a canvas and the results plotted live with Chart.js.

Result

Runs on GitHub Pages with no backend or build tools, in Czech and English, on desktop and mobile.