Skip to content
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

In case you're interested in the correct analytical solution... #1

Open
mikeshardmind opened this issue Jul 1, 2022 · 1 comment
Open

Comments

@mikeshardmind
Copy link

image

You can find working python code for this here: https://github.com/unified-moderation-network/salamander/blob/main/src/contrib_extensions/dice/dicemath.py#L108-L116

Notably, this does not equal what you conjectured at 24:56 of the associated video
image

And you are welcome to use this in any follow-up.

@dmoody256
Copy link

I had a feeling his conjecture was wrong, although I don't have the knowledge or experience to prove it, simply taking his code and running it more than a million times, rather running it 100's of millions of times, shows a mean slightly below his conjecture, for example the 2 d20 tended towards a mean of 13.825, not 13.8333 like his conjecture proposed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants