Can you please add a check that the resulting frequencies approximately match the requested probas.