I am trying to generate a random point on the circumference of a circle using Python.
I have a circle of centre (0, 0) and of radius 50. I did the following.
import numpy as np
angle = 2 * np.pi * np.random.rand()
x = np.cos(angle) * 50
y = np.sin(angle) * 50
But when I test to see if the point is actually on the circle circumference, I did this
x ** 2 + y ** 2 == 50 ** 2
but I get
False
Why is this?