Math Functions
Random Numbers
Random numbers can be used to change the outcome of your program each time it runs. There are two lines of code you need to type before you can generate random numbers:
import java.util.Random; //type this at the beginning of your program
Random rand = new Random(); //type this inside your main method