Version: 2018.4
public static Quaternion rotation ;

説明

ランダムな Quaternion 型の値を返します(読み取り専用)

using UnityEngine;

// Click button and a rotation will be applied

public class ExampleClass : MonoBehaviour { void OnGUI() { if (GUI.Button(new Rect(10, 10, 100, 50), "rotation")) { transform.rotation = Random.rotation; } } }