Counting Segment Intersections.

In the input box before make Segments, enter the number of random segments to make. Then press make Segments. The program displays the number of segment intersections. The typed numbers are the point numbers.