Random Images on a GUI Menu?

Hello!

I have a game with 1 minute rounds. After every round I have a GUI menu pop up with stats like accuracy and score etc… I am able to have one image pop up on my GUI Menu but I want to randomize it so that 1 of say 10 images pops up after each round is over.

Thanks in advance!

Just thinking logic here.

I would assign each image a number in use with a switch function.

I would then just use a bit of random syntax with a 1 to 10 value.

Then I would simply apply that image to the GUI.

Thanks for the reply!

We have random generated enemies spawning on the screen so I agree with your logic. I am just having issues applying the same code logic to the GUI menu. Thank you for the reply though!