using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MusicRandomizer : MonoBehaviour {

	public AudioClip[] musics;
	private AudioSource myAudioSource;

	// Use this for initialization
	void Start () {
		myAudioSource = GetComponent<AudioSource> ();
		myAudioSource.clip = musics [Random.Range (0, musics.Length)];
		myAudioSource.loop = true;
		myAudioSource.Play ();
	}
}
