Defining random points in the plane: point2d

### 13.6.4 Defining random points in the plane: point2d

The point2d command defines a random point whose coordinates are integers between -5 and 5.

- point2d takes an unspecified number of arguments:
  names, a sequence of names for the points.
- point2d(names) assigns a random point whose coordinates are integers between -5 and 5 to each name.

#### Examples

- Input:
  point2d(A))
  This assigns A to a random point. Once assigned, the point is fixed.
- Input:

  point2d(A,B,C)
  triangle(A,B,C)

  generates three random points and uses them to create a triangle; i.e., it creates a random triangle.