using UnityEngine;
using System.Collections;

public class RotateRandomly : MonoBehaviour {

	public Vector3 minRotation;
	public Vector3 maxRotation;
	Vector3 rot;

	// Use this for initialization
	void Start () {
		rot = new Vector3(Random.Range(minRotation.x,maxRotation.x),Random.Range(minRotation.y,maxRotation.y),Random.Range(minRotation.z,maxRotation.z));
	}
	
	// Update is called once per frame
	void Update () {
		transform.Rotate(rot*Time.deltaTime);
	}
}
