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
Release history Release notifications | RSS feed
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)
Built Distribution
ossuary-0.1.0a0-py3-none-any.whl
(22.7 kB
view hashes)
Close
Hashes for ossuary-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9b89668fead05fcd6e20a5dd2ec047be2c53b7c30c02e7ca057000c32a4291b |
|
MD5 | cb14e9b55d8513e36fef527b49707ff3 |
|
BLAKE2b-256 | 5519b64228d5404d76bece2e36ace6823d28cc3bdcc35d452a08717ba89a2571 |