Function randVector

Generates a random vector with an optional length.

  • Parameters

    • length: number = 1

      The length of the vector (default is 1).

    Returns Vector

    A new Vector object with a random angle and optional length.