Global/VectorRand

From Garry's Mod
Revision as of 01:45, 24 September 2012 by Nebual (Talk | contribs)
Jump to: navigation, search

Template:Function

Template:Syntax

Definition

return Vector( math.Rand(-1.0, 1.0), math.Rand(-1.0, 1.0), math.Rand(-1.0, 1.0) )

Additional Notes

  • This will not return unit vectors (Vectors with length = 1), use Vector:GetNormal on this
Personal tools
Navigation