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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ossuary-0.1.0a0-py3-none-any.whl
(22.7 kB
view details)
File details
Details for the file ossuary-0.1.0a0.tar.gz.
File metadata
- Download URL: ossuary-0.1.0a0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9e800c37755d996dffd1df56adbae8a6fbfec12e28086a17f2bff4462137a81
|
|
| MD5 |
290084413cc96cc9778cb815b01c80ca
|
|
| BLAKE2b-256 |
4f3b86a2b8f5bb6c938338b650072e2258ecf9633d8c7f7fcf7bc1fefe7185e6
|
File details
Details for the file ossuary-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: ossuary-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9b89668fead05fcd6e20a5dd2ec047be2c53b7c30c02e7ca057000c32a4291b
|
|
| MD5 |
cb14e9b55d8513e36fef527b49707ff3
|
|
| BLAKE2b-256 |
5519b64228d5404d76bece2e36ace6823d28cc3bdcc35d452a08717ba89a2571
|