Find GameObject and store all of the same objects in an array?

Hi, Unity, I’m stuck and I have no idea how to think about this.

So, basically, what I want to do is get a GameObject by name, but there are two of the same objects with the same name. I want to store them both into an array and then get one randomly. I’m using C#. I’m trying to do some networking using Photon as well, so just take this into consideration.

I tried using FindObjectsByType, but it doesn’t seem to work well. Right now I have no code relating to this.

sliderControl sliderControls;

void Start () {
     sliderControls = GameObject.FindObjectsOfType<sliderControl>() as sliderControl[];
  }