Challenge: Probability Calculator
My code for the Probability Calculator (https://www.freecodecamp.org/learn/scientific-computing-with-python/scientific-computing-with-python-projects/probability-calculator) works well outside of the testing suite. I can get the correct draw and probability when I replicate the testing conditions in main.py. However the two tests test_hat_draw and test_prob_experiment fail whenever I run the tests.
I am wondering if it is something to do with how I am doing my draws, specifically. Could someone take a look and let me know if there are any glaring issues with this code block? If not, I will delete this and post my experiment snip instead.
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36