Hacker News new | ask | show | jobs
by SamReidHughes 2434 days ago
Throw a uniform random dart at the interior of the unit circle. What's its mean distance from the origin?

Instead of integrating, approximate the circle with a regular n-gon and use the centroids of the n isosceles triangles connecting the polygon's vertices to the origin.