Suppose you have a list of DISTINCT intergers. Store this list of intergers in an array of length LENGTH.
int array[LENGTH] = [0,1,6,34,43,55,...]
const int num;
Suppose num < LENGTH.
I want to fill array2 with elements of array. That is, I want to pick num DISTINCT elements of array and put them in array2. array2 cannot be filled with the same number.