AngleRand

From Garry's Mod
Jump to: navigation, search
 AngleRand( )

Contents

Description

Returns an angle with a randomized pitch, yaw, and roll between min(inclusive), max(exclusive).

Arguments

number min=-90 for pitch, -180 for yaw and roll

Min bound inclusive.

Arguments

number max=90 for pitch, 180 for yaw and roll

Max bound exclusive.

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