G.VectorRand

From GMod Wiki

Jump to: navigation, search
Function
Syntax VectorRand( )
Where is this used?
Description:
Returns a random normalized vector.
Returns: Vector
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.VectorRand]G.VectorRand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionOutputs a random vector with a length of 0-100 to the console.
Used onNewerShared.png
Code
print( VectorRand() * 100 )
OutputVariable, random vector with a length of 0-100.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox