Hi,
I am very new to computer programming and need some help with knowing how to randomly select one of three images I have.
Thanks.
images[(int)(images.length * Math.random())]; // For array images.get((int)(images.size() * Math.random()); // For List
int randomRoll = (int)(3 * Math.random());
if (randomRoll == 0)
image1;
else if (randomRoll == 1)
image2;
else
image3;