Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
But what is n? Number of sides? Friend's best score?
Why in the example do you need to roll 1 thrice in order to win (or lose)? Doesn't the highest single number win?
Please clarify some of these points, preferrably in description.
Make this "But he does not know the probabilities for finding a certain number."
There is no need to introduce a variable name here, let alone a new one that is then never used again.
Don't give different variables identical names. ( An argument doesn't even need a specified name! )