Well first you have to generate a random number, which can be done in the Random class, then you simply compare the int it returns with either a switch statement or if statement.

The switch...