Thanks for the explanation and makes sense. OP really is what my old boss would refer to as a "sledgehammer to crack a nut" given what we are trying to calculate, but I'm sure the above can be easily adapted for calculating different hand groups for different games if you have a decent level of mathematical ability (although worryingly, these calcs are miles clear of anything British kids learn at school).