question: public static < T > List < List < T > > shuffle ( int samples , Collection < T > workingSet ) { List < List < T > > sets = newArrayListWithCapacity ( samples ) ; for ( int i = 0 ; i < samples ; i ++ ) { List < T > set = newArrayList ( workingSet ) ; Collections . shuffle ( set ) ; sets . add ( set ) ; } return sets ; }
target:  Based on the passed in working set, creates N shuffled variants.