title: Need help making a random math generator
body: <p>What I am supposed to do is this:Write a program that gives the user 10 random math problems, asks for the answer each time, and then tells the user if they were right or wrong.  Each problem should use 2 random numbers between 1 and 20, and a random operation (+, -, *, or /).  You will need to re-randomize the numbers for each math problem.   You should also keep track of how many problems they get right.   At the end, tell the user how many problems they got right and give them a message based on their result.  For example, you may say “good job”  or “you need more practice.”</p>
  
  <p>So far I am at a loss</p>
  
  <pre><code>import java.util.Scanner; 
  
  public class SS_Un5As4 {
  
   public static void main(String[] args){
  
   Scanner scan = new Scanner(System.in);
  
   int number1 = (int)(Math.random()* 20) + 1;
  
  int number2 = (int)(Math.random()* 20) + 1;
  
   int operator = (int)(Math.random()*4) + 1;
  
    if (operator == 1)
  
    System.out.println("+"); 
  
   if (operator == 2) 
  
     System.out.println("-");
  
   if (operator == 3)
  
   System.out.println("*");
  
    if (operator == 4)
              System.out.println("/");  
  
  
        }
    }
  </code></pre>
  
  <p>I mostly need to know how to turn these random numbers and operators into a problem, and how to grade each question to see if they are wrong. </p>