How to make random positions in Equatorial coordinate system?
If I divide Dec between -90 and 90 evenly, the space distribution is not random.
Astronomy Stack Exchange is a question and answer site for astronomers and astrophysicists. It only takes a minute to sign up.
Sign up to join this communityWell, your problem is that you have a sphere. To compensate for the polar declination skew, you just calculate $$\sin^{-1}(\mathtt{rand})$$ Where $\mathtt{rand}$ is a number in an evenly divided -1 to 1 range. Alternatively, you can use another trigonometric function based on what you have available, but you get the idea.
RA can obviously be divided evenly.