Home > other >  A random coordinates on a circle
A random coordinates on a circle

Time:09-25

Assumes that the center of the circle (a, b), the radius r
My idea is first randomly out of the x coordinate [a - r, a + r]
Then according to the formula to calculate the corresponding y
But feel a little tedious, want to consult a bit there is no other efficient way,
  • Related