A circle of radius $r$ is concentric with and outside a square of side length $2$. The probability that two entire sides of the square are visible from a randomly chosen point on the circle is $\frac12$. What is $r$?
Put the square as $|x|,|y|\le1$. Two entire sides are visible exactly when $|x|>1$ and $|y|>1$.
In the first quadrant, the point $(r\cos\theta,r\sin\theta)$ qualifies when $\sin\theta>\frac1r$ and $\cos\theta>\frac1r$, i.e. for $\beta<\theta<90^\circ-\beta$ where $\sin\beta=\frac1r$. The probability is $\frac{90^\circ-2\beta}{90^\circ}=\frac12$, so $\beta=22.5^\circ$.
So $r=\frac1{\sin22.5^\circ}=\frac{2}{\sqrt{2-\sqrt2}}=\boxed{\sqrt{4+2\sqrt2}}$.