Function random

  • Creates a random unit vector * scale

    Type Parameters

    Parameters

    • scale: number = 1

      Default 1

    • Optional dst: T

      vector to hold result. If not passed in a new one is created.

    Returns T

    The random vector.