Example code:

Alternatively, perhaps it's a chance based on the game's mechanics. For instance, in some games, certain clubs have a base probability of achieving a Hole-in-One based on distance. So the calculator could take distance, club type, and other modifiers.

Now, considering the code, maybe the user wants to enter values interactively. So:

Now, considering the user might not know the exact formula, the code should have explanations about how the calculation works. So in the code comments or in the help messages.