docs: def from_rectangle(box):
          """ Create a vector randomly within the given rectangle. """
          x = box.left + box.width * random.uniform(0, 1)
          y = box.bottom + box.height * random.uniform(0, 1)
          return Vector(x, y)