title: Very Simple Random Number Generator Compiling Issue
body: <p>Hi i'm really new to Java and I just wanted to find out why my program wasn't compiling. Whenever I compiler the program I get an error message of:</p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
      The method nextInt(int) is undefined for the type Random
  
      at Random.main(Random.java:11)   
  </code></pre>
  
  <p>Any input on my issue would be greatly appreciated.</p>
  
  <pre><code>import java.util.Random;
  
  class Random {
      public static void main(String[] args)
      {
          Random dice = new Random();
          int number=0;
  
          for(int counter=1; counter&lt;=10; counter++)
          {
              number = dice.nextInt(6);
              System.out.println(number);
          }
      }
  
  }
  </code></pre>