Static function
Rotator.Random
Generates a random rotation, with optional random roll
Syntax
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
- Rotator the random rotation