# What does 'roll' mean in the Random Rotator?

**URL:** <https://forums.unrealengine.com/t/what-does-roll-mean-in-the-random-rotator/355677>\
**Category:** Community & Industry Discussion\
**Tags:** rotation, random, unreal-engine, question\
**Created:** [April 27, 2016, 3:05pm UTC](https://forums.unrealengine.com/t/what-does-roll-mean-in-the-random-rotator/355677 "2016-04-27T15:05:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![anonymous\_user\_6fcbe82e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6fcbe82e](https://forums.unrealengine.com/u/anonymous_user_6fcbe82e)\
**Post date:** [April 29, 2016, 7:17pm UTC](https://forums.unrealengine.com/t/what-does-roll-mean-in-the-random-rotator/355677/7 "2016-04-29T19:17:30Z")

</div>

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.

---

_[View the full topic](https://forums.unrealengine.com/t/what-does-roll-mean-in-the-random-rotator/355677)._
