
public class Random {

      static void random(){
		int[] nums = new int[10];
		for(int i=0; i<nums.length;i++){
			int random= (int) (Math.random()*10);
			boolean found=true;
			
			while(found){
				random= (int) (Math.random()*10);
				found=false;
			
				for (int num : nums) {
					if (random==num) {
						found=true;
						break;
					}
				}
			}			
			nums[i]=random;
			}
			
		//print the random number arrays
		for(int num:nums){
			System.out.print(num+" ");
			
		}
		
		
	}
	public static void main(String[] args) {
		
		int counter=1;
		while(counter<6){
		System.out.print("Random array of unique numbers Test ("+counter+"): ");
			random();
		System.out.println();
		counter++;
		}
		

	}

}

@@ -117,32 +117,36 @@
 %09%09int random
-=
+ = 1 +
  (int)
- 
 (Math.random
@@ -165,25 +165,27 @@
 oolean found
-=
+ = 
 true;%0A%09%09%09%0A%09%09
@@ -213,16 +213,20 @@
 ndom
+ 
 =
+ 1 +
  (int)
- 
 (Mat
@@ -250,17 +250,19 @@
 %09%09%09found
-=
+ = 
 false;%0A%09
@@ -310,10 +310,12 @@
 ndom
+ 
 ==
+ 
 num)
@@ -328,17 +328,19 @@
 %09%09%09found
-=
+ = 
 true;%0A%09%09
@@ -381,17 +381,19 @@
 %09nums%5Bi%5D
-=
+ = 
 random;%0A
@@ -480,17 +480,19 @@
 rint(num
-+
+ + 
 %22 %22);%0A%09%09
@@ -564,17 +564,19 @@
  counter
-=
+ = 
 1;%0A%09%09whi
@@ -585,17 +585,19 @@
 (counter
-%3C
+ %3C 
 6)%7B%0A%09%09Sy

Update Random.java