Read:
path

Some techniques of drawing random polygons.

A friend and former colleague of mine, Leonard Zusne, wrote a book: Visual Perception of Form Academic Press - 1970. The book was a collection of studies on the psychophysics surrounding the perception of shapes. I recall one study which generated random polygons for use as stimuli in perceptual research: Given a positive integer, n, a collection of n pairs of the form Pi=(alphai, di) is generated in which 0≤ alphai < 2π represents an angle, and d represents a distance from the origin. Borrowing from the terminology of the later-posed art gallery lighting problem, the polygons thus constructed are those lightable by a single lamp. Provided, the center point is located inside the polygon, the polygon has no crossing lines.