This is similar to what is done in Excel Sheet by Prof. Karl Schmedders in the course An Intuitive Introduction to Probability.
git clone https://github.com/sagar-rathod/monte-carlo-simulation.git
cd monte-carlo-simulation
pip install -r requirements.txt
python simulation.py --doors 100 --samples 50