We usually ask that you at least make an attempt at solving your challenge.
I’d suggest defaulting N
to 24 so you get a point every 15 degrees with 8 of the cardinal points.
I posted an example of generating 3D points (although for camera positions) using azimuth and elevation by applying a rotational transformation: