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
Author
|
Hi, If you have any confusion about the algorithm, you can email me at hmdkabir@connect.ust.hk and arrange a meeting. |
Author
|
Please email me, if you are confused. |
Author
|
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. |
Author
|
Please approve |
imSanko
approved these changes
Jun 20, 2024
Author
|
For theory visit the wiki page: For more explanation of the theory please visit my GitHub repository: Please correct 2 typos and merge. |
Author
|
Please Merge the request. |
mindaugl
approved these changes
Jul 27, 2025
cclauss
reviewed
Sep 15, 2026
| import numpy as np | ||
|
|
||
|
|
||
| def outcome_of_rolling_n_sided_dice_k_time(n_side: int, k_time: int) -> float: |
Member
There was a problem hiding this comment.
CONTRIBUTING.md says that variable names should be self-documenting.
Suggested change
| def outcome_of_rolling_n_sided_dice_k_time(n_side: int, k_time: int) -> float: | |
| def outcome_of_rolling_n_sided_dice_k_time(number_of_sides: int, number_of_rolls: int) -> float: |
cclauss
requested changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: