Here is my script that works. I need to have the numbers, when generated, not be duplicated. I understand that I should use an array, but I do not know how. Some clarification would be appreciated. Thank you.
public class Math
public static void main ( String args )
Random randomNumbers = new Random();
for ( int counter = 1; counter <= 30; counter++)
number = 1 + randomNumbers.nextInt( 49 );
System.out.printf("%d ", number);
if ( counter % 6 == 0 )