public static List<String> createWorkingSet(Generator generator,int size){
  List<String> workingSet=newArrayListWithCapacity(size);
  for (int i=0; i < size; i++) {
    workingSet.add(generator.nextString());
  }
  return workingSet;
}

public static List < String > createWorkingSet ( Generator generator , int size ) { List < String > workingSet = newArrayListWithCapacity ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { workingSet . add ( generator . nextString ( ) ) ; } return workingSet ; }
creates a random working set based on the distribution .
