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