News
You use this library to generate a random number and insert the number into an a. ... Add the following code to the top of your file:import java.util.Random; Create a random number.
The following code generates a random number between one and two:Random generate = new Random(); int image_number = (int) (Math.random() * 2); Display the image based on the randomly generated number.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results