-
-
Notifications
You must be signed in to change notification settings - Fork 45.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The sum of outcomes for rolling an N-sided dice K times. #11463
base: master
Are you sure you want to change the base?
Conversation
Image Classification Example
for more information, see https://pre-commit.ci
…classification_example_mnist_cnn.py
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…f_rolling_n_sided_dice_k_time.py
for more information, see https://pre-commit.ci
…_outcomes_for_rolling_n_sided_dice_k_time.py
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Hi, If you have any confusion about the algorithm, you can email me at hmdkabir@connect.ust.hk and arrange a meeting. |
Please email me, if you are confused. |
There are two typos in comments. Everything else seems correct. Lines 40 and 41 will be as follows: The probability of getting 2 is 1/36. |
Please approve |
For theory visit the wiki page: For more explanation of the theory please visit my GitHub repository: Please correct 2 typos and merge. |
Please Merge the request. |
Describe your change:
Add an algorithm?
The sum of outcomes for rolling an N-sided dice K times.
This function returns a list. The last two elements are the
range of probability distribution.
The range is: 'k_time' to 'k_time*n_side'
Other elements contain probabilities for getting a summation
from 'k_time' to 'k_time*n_side'.
Checklist: