The Circumscribed Triangle

This is a project intended to show that there is a 1/4 chance that a circumscribed triangle covers the center of the circle.

This program randomly generates three points on a circle, creates the triangle formed by these three points, and determines if it covers the center of the circle.

(Note: the first point stays constant at (-1,0). This is because without loss of generality (WLOG), we can simply assume the first point is here. Think of rotating the circle so the first point is on that point. Similarly, WLOG, we can say the second point is always on the top half of the circle (we can reflect the circle if the second point is on the bottom). This just made it easier to code)

Your browser does not support the HTML canvas tag.