The code for "Parker & Engle -- Spoofing Large Probability Mass Functions to Improve Sampling Times and Reduce Memory Costs"