3 Reusable Code Snippet Topics
Remove Filter
|
|
Here's an interesting little scenario. You get challenged to a game of coin toss. Both players pick a sequence of coin toss results (heads or tails). The coin is repeatedly tossed until the sequence for one of the players occurs. The loser pays the winner a dollar. You'd assume that … |
|
Here is a code snippet that calculates the probability of the outcome of a two sided game based on the capability of each side. I used it in my football league simulator program Could be used in any number of simulators which involve two parties. For equally strong parties, the … |
|
Here is function to count the number of elementary events for sum of multiple throws of n-faced dice. |
The End.