public static List<Integer> createWorkingSet(IntegerGenerator generator,int size){
  Integer[] ints=new Integer[size];
  for (int i=0; i < ints.length; i++) {
    ints[i]=generator.nextInt();
  }
  return Arrays.asList(ints);
}

public static List < Integer > createWorkingSet ( IntegerGenerator generator , int size ) { Integer [ ] ints = new Integer [ size ] ; for ( int i = 0 ; i < ints . length ; i ++ ) { ints [ i ] = generator . nextInt ( ) ; } return Arrays . asList ( ints ) ; }
creates a random working set based on the distribution .
