Skip to content

Latest commit

 

History

History
54 lines (47 loc) · 1.48 KB

README.md

File metadata and controls

54 lines (47 loc) · 1.48 KB

ossuary 🎲 probability analysis toolkit

pdm-managed Hatch Code style: black Imports: isort Types: MyPy

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)'

💀 fin