Simply press the flag button to randomly generate a triangle and see how it calculates to find the distance between the red and green dot.