@lakuna/umath
    Preparing search index...

    Function random

    • Set a vector to a random value with the given magnitude.

      Type Parameters

      Parameters

      • magnitude: number

        The magnitude.

      • out: T

        The vector to store the result in.

      Returns T

      This vector.