From the source:
FRotator UKismetMathLibrary::RandomRotator(bool bRoll)
{
FRotator RRot;
RRot.Yaw = FMath::FRand() * 360.f;
RRot.Pitch = FMath::FRand() * 360.f;
if (bRoll)
{
RRot.Roll = FMath::FRand() * 360.f;
}
else
{
RRot.Roll = 0;
}
return RRot;
}
seems like taking a random pitch and yaw is enough to get a random rotator, but you can opt to do an extra randomness on the roll. In this case it’s really confusing that they use the X instead of Roll here (since in x,y,z x is the first, while it’s last in pitch, yaw, and roll). Also I still don’t know what having a random roll adds to the already random rotator.