Garry's Mod Wiki

AngleRand

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

Special Pages


Wikis

?

Render Time: 77ms

DB GetPage 59
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 6