@@ -0,0 +1,646 @@
+%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Random;%0A%0Apublic class RandomArrayGenerator %7B%0A%0A%09private final int size;%0A%0A%09private final int min;%0A%09private final int max;%0A%0A%09public RandomArrayGenerator(int recordSize, int max) %7B%0A%09%09this(recordSize, max, 0);%0A%09%7D%0A%0A%09public RandomArrayGenerator(int recordSize, int max, int min) %7B%0A%09%09this.size = recordSize;%0A%09%09this.max = max;%0A%09%09this.min = min;%0A%09%7D%0A%0A%09public List%3CInteger%3E generateRandomNumbers() %7B%0A%09%09Random generator = new Random();%0A%09%09List%3CInteger%3E list = new ArrayList%3C%3E(size);%0A%09%09for (int i = 0; i %3C size; i++) %7B%0A%09%09%09list.add(generator.nextInt(max - min) + min);%0A%09%09%7D%0A%09%09return list;%0A%09%7D%0A%7D%0A

Add an utility to generate random arrays for algorith testing