public static int [] getRandomArray(int size, int range) {

        int [] list = new int[size];

        Random random = new Random(System.currentTimeMillis());

        for (int i = 0; i < size; ++i) {
            list[i] = random.nextInt(range);
        }

        return list;
    }