G.VectorRand
From GMod Wiki
Function | |
Syntax |
VectorRand( ) Where is this used? |
Description: | |
Returns a random normalized vector. | |
Returns: | Vector |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.VectorRand]G.VectorRand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Outputs a random vector with a length of 0-100 to the console. |
---|---|
Used on | |
Code | print( VectorRand() * 100 ) |
Output | Variable, random vector with a length of 0-100. |