Adding RNG code from old models
Completed initial coding of PHOLD model