Python package · April 2025

Monte Carlo Simulator

A pip-installable Python package for Monte Carlo simulations with customizable, weighted dice — three classes that roll, analyze, and report on the results.

Three classes, one job each

Die models a die with any number of faces and a per-face weight you can change on the fly. Game takes one or more dice and rolls them together for a set number of rounds. Analyzer takes a finished game and answers the actual questions: how many rolls landed a jackpot, how often each face came up, and how many distinct combinations and permutations appeared across the whole run.

Packaged like a real dependency

Instead of leaving it as a notebook, it installs straight from GitHub with pip install git+https://github.com/tksluangrath/montecarlo.git. Import it and the three classes are ready to compose — weight a die, wire up a game, hand the results to the analyzer.

PythonNumPypandas