Garry's Mod Wiki

AngleRand

Angle AngleRand( number min = -90 for pitch, -180 for yaw and roll, number max = 90 for pitch, 180 for yaw and roll )

Description

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

Arguments

1 number min = -90 for pitch, -180 for yaw and roll
Min bound inclusive.
2 number max = 90 for pitch, 180 for yaw and roll
Max bound exclusive.

Returns

1 Angle
The randomly generated angle.

Example

Prints out a random angle.

Output: -6.949 113.388 130.879

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 4
Generate Html 8
SaveChanges (1) 9
Render Body 0
Render Sidebar 7