1 2 3 4 5 6 7 8 9 10 11
using UnityEngine; public class RandomizeRotation : MonoBehaviour { public float spread; private void Start() { base.transform.Rotate(Random.insideUnitSphere.normalized, Random.Range(0f - spread, spread)); } }