How to randomize and then display a GUITexture

Hello, I am currently modifying this script to choose a random texture and then display it. This is a script from user tbkn that I partly understand

	public GUITexture[] possibleChoices = new GUITexture[0];
	
	public GUITexture getRandomGUITexture() {
		return possibleChoices[Random.Range(0, possibleChoices.Length)];

So far, I understand that it is supposed to get a list of items in the inspector. Then it is supposed to choose one of those with the 0.possibleChoices.Length. What I don’t understand is why the texture is not displaying.

thanks

You are making an array and setting the array size to 0, the array doesnt have any textures inside it, its just an empty array with size 0. You can use

possibleChoices[Random.Range(0, 10]

which will return a number between 0 and 10 and you can make an array and put some GUITextures inside it and based on which random number was chosen you can get a texture from the array and draw it. How are you drawing the textures, need to see the code.