Bertrand’s paradox

Consider a circle; an equilateral triangle inscribed on it; and a chord drawn at random. What is the probability that the chord is longer than the side of the triangle? This question is known as Bertrand’s paradox – here’s the Wikipedia entry. I found it fascinating and spent some time to make this ipython notebook about it.