RandomVec (2 | 3)
Function. Outputs a random 2D or 3D vector with a specified length.
The direction of the vector is uniformly distributed. The length equals the Radius parameter. Useful for generating random directions for particle velocity or offset.
Properties & inputs:
- Radius (input | property): Length of the resulting vector.
Output:
- Random vector with the specified length, pointing in a uniformly random direction.