Refactor NumUniqueValuesFromRandChoices.py