/* This is problem R6.4 
 * 
 * Note we print the array each iteration. 
 * 
 */
import java.util.*; 

public class R64 {
  public static void main(String[] args) {
    int[] values = new int[10]; 
    for (int i = 0; i < 10; i++) {
      values[i] = (int) (Math.random() * 101); // [0, 100] and integer 
      for (int j = 0; j < i; j++)  
        if (values[i] == values[j]) { // if the value exists already, go back to try again 
          i = i - 1;
          break; 
        }
      System.out.println( Arrays.toString( values ) ); 
    }
  }
}