Skip to content

Commit

Permalink
Allow for replaceable RNG
Browse files Browse the repository at this point in the history
Motivated in part by avrae/d20#7.
  • Loading branch information
posita committed Sep 21, 2021
1 parent 3324771 commit f278e2a
Show file tree
Hide file tree
Showing 22 changed files with 1,033 additions and 1,003 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ It has the following runtime dependencies:
* [``beartype``](https://pypi.org/project/beartype/) for yummy runtime type-checking goodness (0.8+)
[![Bear-ified™](https://raw.githubusercontent.com/beartype/beartype-assets/main/badge/bear-ified.svg)](https://beartype.rtfd.io/)
* [``matplotlib``](https://matplotlib.org/) for visualizing [histograms and pools](https://posita.github.io/dyce/latest/countin/)
* [``numpy``](https://numpy.org/) for the RNG used by [``H.roll``](https://posita.github.io/dyce/latest/dyce/#dyce.h.H.roll)

If you install ``beartype`` for type checking your own code, but don’t want ``dyce`` to use it (e.g., for performance reasons), you can set the ``DYCE_BEARTYPE`` environment variable to a falsy[^9] value before ``dyce`` is imported.

Expand Down
14 changes: 7 additions & 7 deletions docs/img/graph_classes_dyce_r_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions docs/img/graph_classes_dyce_r_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f278e2a

Please sign in to comment.