How to make a array out of my code

int players = PhotonNetwork.playerList;
string killer = new Random(0, players);
These are the lines where Unity wants an array, but I dont know how to do it. I’m new to coding and I know I’m doing something painfully obvious. Please help.

Does this help?

PhotonPlayer[] players = PhotonNetwork.playerList;
PhotonPlayer killer = players[Random.Range(0, players.Length)];

Taken from the exit games docs here. Should work, but I don’t currently use photon.

int players = PhotonNetwork.playerList.Length;