Generates names from  a given set of weights.