Skip to main content

dice analysis toolkit

Project description

ossuary 🎲 probability analysis toolkit

A Python package for analyzing dice and other randomizers.

Features:

  • Exact values for probability computations.
  • Statistical analysis (mean, mode, standard deviation).
  • Graph plotting with visualization of median and other quantiles.
  • Support for symbolic as well as numeric dice.
  • Command-line evaluator for ease of use.
  • Python API for extensibility.

Installation

pip install ossuary
pip install matplotlib  # optional graphing support

Commands

Roll a die.

ossuary d6

Roll d4+1 three times and add the results.

ossuary '3 @ (d4+1)'

Roll 4d6 and add the highest 3 dice.

ossuary 'Dice.NdX(4, d6, kh=3).sum()'

Take the middle die out of three d20 rolls.

ossuary 'Dice.NdX(3, d20, km=1).sum()'

Graph 12d6 with the results partitioned by deciles.

ossuary '(12 @ d6).plot(q=10)'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ossuary-0.1.0a0.tar.gz (33.9 kB view hashes)

Uploaded Source

Built Distribution

ossuary-0.1.0a0-py3-none-any.whl (22.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page