Start with random line (a two vertices and two edges polygon)
Take random edge E of the polygon
Make new random point P on this edge
Take a line L perpendicular to E going through point P. By calculating intersection between line T and lines defined by the two edges adjacent to E, calculate the maximum offset of P when the convexity is not broken.