Garry's Mod Wiki

VectorRand

  Vector VectorRand( number min = -1, number max = 1 )

Description

Returns a random vector whose components are each between min(inclusive), max(exclusive).

Arguments

1 number min = -1
Min bound inclusive.
2 number max = 1
Max bound exclusive.

Returns

1 Vector
The random direction vector.