Accessing Array of Animations

I am trying to create a function where an enemy will play a random attacking animation. I have declared my AnimationClip arraylist, but do not know how to access it. I do not feel that an IENumerator is needed, as after an attack animation is completed, it will refer back to the previous animation state, triggering the if statement again.

public class EnemyMovement : MonoBehaviour
{

public AnimationClip[] attackingAnimations;
...
...
...

void Update()
{

if (animator.GetBool ("Range"))
{
AttackAnimation()
}

void AttackAnimation()
{
print ("Hi");
//Call a random animation clip from array here
}

I’m not sure where to begin with the AttackAnimation function called. Help would be appreciated.

I have fixed my problem using the following tutorial: