title: I get errors from code copied from internet
body: <p>I have copied some code from internet:</p>
  
  <pre><code>    static Random randGen = new Random();     
      int hit;
      hit = randGen.nextInt(100) + 1;
  </code></pre>
  
  <p>What I want it to do is to select a number from 1-100. However, I get an error in the first line of this code:</p>
  
  <blockquote>
    <p>Multiple markers at this line<br>
    -Random cannot be resolved into a type.<br>
    -Illegal modifier for parameter randGen; only final is permitted.<br>
    -Random cannot be resolved into a type.</p>
  </blockquote>