Global/VectorRand

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Min/max args)
m (Line number updates)
Line 2: Line 2:
 
|Name=VectorRand
 
|Name=VectorRand
 
|Parent=Global
 
|Parent=Global
|Description=Returns a random vector whose components are each between min and max.
+
|Description=Returns a random vector whose components are each between [min, max).
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No
 
|File=lua/includes/util.lua
 
|File=lua/includes/util.lua
|Line=97-L99
+
|Line=94-L98
 
}}
 
}}
 
{{Arg
 
{{Arg

Revision as of 20:04, 5 June 2019

 VectorRand( )

Contents

Description

Returns a random vector whose components are each between [min, max).

Arguments

number min=-1

Min bound inclusive.


Next Update Change

This feature is only available in the next update.

Arguments

number max=1

Max bound exclusive.


Next Update Change

This feature is only available in the next update.

Returns

Vector

The random direction vector.
Personal tools
Navigation