Seol mar théacs é seo: Programming discrete distributions with chemical reaction networks