This is my first attempt at printing out a set of 50 random ints of the range -20 to 20.
int set1 = (int)(Math.random() * (40) + (-20) );
Scanner input = new Scanner(System.in);
for ( int set2 =1; set2 < 20 ; set2 = set1 )
System.out.print(set2);
Can anyone help my understand where I am going wrong?