9. Among the eight vertices of a regular octagon, three vertices are chosen at random. The probability that these three points form the vertices of a right triangle is $\qquad$ .


9. $\frac{3}{7}$.

Connecting three vertices of a regular octagon yields 56 triangles, of which 24 are right triangles, hence, $P=\frac{3}{7}$.