Check out example codes for "choose random gameobject from a gameobject list". It will help you in understanding the concepts better.

Code Example 1

void Fire()
 {
          if(Logs.Count == 0) 
          {
               CancelInvoke();
               return;
          }
          int randomIndex = Random.Range(0, Logs.Count);
          Logs[randomIndex].transform.position = transform.position;
          Logs[randomIndex].transform.rotation = transform.rotation;
          Logs[randomIndex].SetActive(true);
          Logs.RemoveAt(randomIndex);
  }

Learn ReactJs, React Native from akashmittal.com