add the code to do the pp->ZH with randomization
Merge branch 'master' of https://github.com/awhitbeck/usercode