Here's a fun little math problem I made(by fun I mean no complicated methods needed at all.)
You have a large circle with radius N with a cross in it to seperate the 4 quadrants(so that the figure looks like an 'xor' symbol). You also have a small circle with radius N/5.
What is the probability that the small circle will intersect the cross(anywhere) when randomly placed inside the large circle?
Note: Even though this is indeed a math problem, I think the approach to the solution(at least the one I came up with) is quite nice. So give it a shot!
r = R*sqrt( rand() )for the first example, in which case it gives the same distribution as the second example does) $\endgroup$