Public Array of GameObjects

Hey !

i am making a scroller game and would like to create an array that i can just drag and drop the coin prefabs into then i would like to instantiate random objects from that array . i can instantiate a single instance of the object using the code below .

    public GameObject  CoinPrefab;

// Update is called once per frame
void Update () 	
{   

     Instantiate (CoinPrefab , new Vector3 (8,4,0),Quaternion.identity);

}

public GameObject CoinPrefab;

     // Update is called once per frame
     void Update ()     
     {   
     
          Instantiate (CoinPrefab[Random.Range(0, CoinPrefab.Length)], new Vector3 (8,4,0),Quaternion.identity);
     
    }