How to generate two sets from distinct points on a sphere, and plot them?

I need to apply the PCA at different points of a spherical cap, but I don’t know how to build these sets of different points, I need at least 2 sets.

Here is a picture with the idea of what I need.

Captura de tela de 2022-04-04 12-37-48