# rotationUniform

> Returns a random rotation with uniform distribution (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Quaternion rotationUniform { get; }
```

### Remarks

Employs [Hopf fibration](https://en.wikipedia.org/wiki/Hopf_fibration) to return a random [Quaternion](/engine/6000.0/script-reference/unityengine/quaternion.md) within a uniformly distributed selection space. Gives higher quality results compared to the more naive approach employed by [Random.rotation](/engine/6000.0/script-reference/unityengine/random/rotation.md), though at a 40% performance cost.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Sets a random orientation for the object.
        transform.rotation = Random.rotationUniform;
    }
}
```
