Generalize to sample any number of dev sets