Global/AngleRand

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Also menu state)
m (rephrased the output ranges)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=AngleRand
+
|Description=Returns an angle with a randomized pitch, yaw and roll. The pitch is between -90 and 90 degrees, while yaw and roll are between -180 and 180 degrees.
|Parent=Global
+
|Description=Returns an angle with a randomized pitch, yaw and roll, first one between -90 and 90, the rest between -180 and 180 degrees.
+
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No

Revision as of 13:57, 11 August 2018

 AngleRand( )

Contents

Description

Returns an angle with a randomized pitch, yaw and roll. The pitch is between -90 and 90 degrees, while yaw and roll are between -180 and 180 degrees.

Returns

Angle

The randomly generated angle.

Examples

Example

Prints out a random angle.

print( AngleRand() )

Output:

-6.949 113.388 130.879
Personal tools
Navigation