geometry

20 bookmarks
2025-10-12 · johndcook.com

Generate random points inside a sphere

Generating random points inside a sphere of any dimension.

The customary way to generate points on a sphere in n dimensions is to generate points from an n-dimensional normal (Gaussian) distribution and normalize by dividing by the length. And the way to generate samples from an n-dimensional normal is simply to generate a list of n one-dimensional normals…
Instead, the thing to do is to set
2025-08-01 · johndcook.com

Roundest regular solid

A dodecahedron is rounder than an icosahedron, as measured by angle defect, the discrete analog of curvature.