Random Points on a Sphere | Mike Bostock | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Mike Bostock
@mbostock
Visualization toolmaker. Founder
@observablehq
. Creator
@d3
. Former
@nytgraphics
. Pronounced BOSS-tock.
Comments (4)
Paul Chaikin
Sep 21, 2020
I think you're doubling the appropriate range for longitude (i.e. [-360,360] instead of [-180,180])
Mike Bostock
Sep 21, 2020
I was indeed. Thanks, and fixed!
Reply
Jacob Rus
Mar 13, 2021
Cf. also
http://extremelearning.com.au/how-to-generate-uniformly-random-points-on-n-spheres-and-n-balls/
Jacob Rus
Mar 18, 2021
Marsaglia (1972) is available online,
http://doi.org/10.1214/aoms/1177692644
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
10
Follow
Follow
Random Points on a Sphere | Mike Bostock | Observable