Git Product home page Git Product logo

check_shelby_rolls's Introduction

Check Shelby's Friend's Rolls

Simple scripts to see the likelihood of getting stats like these:

Shelby's Friend's Rolls

According to Shelby,

This guy rolled for this character and has been banned from rolling for his stats. Please note this is a level 8 character ... His girlfriend is the DM and swears that every dice was hand made by her verified balanced and he rolled in front of her

Setup

Requires that Anaconda is installed.

From this directory, run:

conda env create
conda activate check_rolls

Usage

From this directory (after setup), run:

python roll_dice.py 1000000 stats.root
python determine_probability.py stats.root probabilities.pdf

This will roll 1,000,000 sets of stats, show the results in probabilities.pdf, and print some values to the console.

For example, the output might look like this:

Probability of all stats being at least:
1: (100.000000+/-0)%
2: (100.000000+/-0)%
3: (100.000000+/-0)%
4: (100.000000+/-0)%
5: (100.000000+/-0)%
6: (99.99990+/-0.00010)%
7: (99.9714+/-0.0017)%
8: (99.703+/-0.005)%
9: (97.935+/-0.014)%
10: (92.001+/-0.027)%
11: (78.67+/-0.04)%
12: (57.03+/-0.05)%
13: (32.40+/-0.05)%
14: (13.109+/-0.034)%
15: (3.441+/-0.018)%
16: (0.503+/-0.007)%
17: (0.0317+/-0.0018)%
18: (0.00080+/-0.00028)%
19: (0.000000+/-0)%

Probabilities

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.