On this page

Function random

  • Generates a random vector with the given scale

    Parameters

    • out: vec3

      the receiving vector

    • Optionalscale: number

      Length of the resulting vector. If omitted, a unit vector will be returned

    Returns vec3

    out

Was this helpful?
SDK JS
Reference
random