Random.rotationUniform
static var rotationUniform: Quaternion;
static Quaternion rotationUniform;
static rotationUniform as Quaternion
Description

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

// Sets a random orientation for the object.
transform.rotation = Random.rotationUniform;
using UnityEngine;
using System.Collections;

public class Example : MonoBehaviour {
    void Example() {
        transform.rotation = Random.rotationUniform;
    }
}
import UnityEngine
import System.Collections

public class Example(MonoBehaviour):

	def Example() as void:
		transform.rotation = Random.rotationUniform