[Python] Generate a random sample of points distributed on the surface of a unit sphere

Discussão em 'Python' iniciado por Stack, Dezembro 7, 2024.

  1. Stack

    Stack Membro Participativo

    I am trying to generate random points on the surface of the sphere using numpy. I have reviewed the post that explains uniform distribution here. However, need ideas on how to generate the points only on the surface of the sphere. I have coordinates (x, y, z) and the radius of each of these spheres.

    I am not very well-versed with Mathematics at this level and trying to make sense of the Monte Carlo simulation.

    Any help will be much appreciated.

    Thanks, Parin

    Continue reading...

Compartilhe esta Página