title: Can a for loop work with random number?
body: <p>This is my first attempt at printing out a set of 50 random ints of the range -20 to 20.</p>
  
  <pre><code>int set1 = (int)(Math.random() * (40) + (-20) );
  Scanner input = new Scanner(System.in);
  for ( int set2 =1; set2 &lt; 20 ; set2 = set1 )
      System.out.print(set2);
  </code></pre>
  
  <p>Can anyone help my understand where I am going wrong?</p>