nanos world API Reference Unofficial documentation
Static function Shared

Rotator.Random

Generates a random rotation, with optional random roll

Syntax

Lua
Rotator.Random(roll = false, min = -180, max = 180)

Parameters

Name Type Default Description
roll optional boolean false Whether to use a random roll in the rotator, otherwise uses 0 for roll
min optional float -180 Minimum value
max optional float 180 Maximum value

Returns