Garry's Mod Wiki

Revision Difference

Global.VectorRand#552337

<function name="VectorRand" parent="Global" type="libraryfunc"> <description>Returns a random vector whose components are each between min(inclusive), max(exclusive).</description> <realm>Shared and Menu</realm> <file line="94-L98">lua/includes/util.lua</file> <file line="99-L103">lua/includes/util.lua</file> <args> <arg name="min" type="number" default="-1">Min bound inclusive.</arg> <arg name="max" type="number" default="1">Max bound exclusive.</arg> </args> <rets> <ret name="" type="Vector">The random direction vector.</ret> </rets> </function>