Adventures in C &#8211; A betting generator (take two)