Random Points on a Sphere

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

There are several ways to pick random points on a sphere. Using points of the form , where and , gives an evenly distributed set of points. Using spherical coordinates, , causes too many points to cluster at the poles. Picking points at random in a cube around the sphere and normalizing, , creates too many points that come from the corners of the cube.

Contributed by: Ed Pegg Jr (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

detailSectionParagraph


Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send