Define random points in the plane: point2d

### 12.6.4 Define random points in the plane: point2d

The point2d command defines a random point whose coordinates are integers between -5 and 5. This command takes a name as an argument and assigns the point to the name. For example,
Input:

point2d(A)

assigns A to a random point. Once assigned, the point is fixed. The command can also take a sequence of names, and will assign separate random points to each name. For example, to generate a random triangle, first generate three random points
Input:

point2d(A,B,C)

and then use them for a triangle
Input:

triangle(A,B,C)