Returns a random rotation with uniform distribution(Read Only).
// Instantiates a prefab with a random rotation at the world-originvar prefab : GameObject;Instantiate(prefab, Vector3.zero, Random.rotationUniform);
using UnityEngine;using System.Collections;public class example : MonoBehaviour { public GameObject prefab; void Example() { Instantiate(prefab, Vector3.zero, Random.rotationUniform) as GameObject; }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): public prefab as GameObject def Example(): (Instantiate(prefab, Vector3.zero, Random.rotationUniform) as GameObject)