using UnityEngine; using System.Collections; namespace SciFiArsenal { public class SciFiPitchRandomizer : MonoBehaviour { public float randomPercent = 10; void Start () { transform.GetComponent().pitch *= 1 + Random.Range(-randomPercent / 100, randomPercent / 100); } } }