public string[]_AniName=new string[]{"animation1","animation2", "animation3","Foot1","Foot2","Foot3"};

 

int index = Random.Range(0, _AniName.Length);
Debug.Log(index);
Animator ani = gameObject.GetComponent<Animator>();

ani.SetTrigger(_AniName[index]);