it seems like parentsNum is assigned as a side-effect of createRandomizedConfig(), i rather prefer to generate it here and pass into createRandomizedConfig()