CMS-Python-DevOps
CMS-Python-DevOps copied to clipboard
Testing stochastic function
We can include a function which uses a random number and explain how to test that (setting random seed).
This could be in the math
module with the current mean
function. I propose putting this after the testing section, and perhaps emphasize writing tests before/accompanying code.
In the August 2019 bootcamp, Daniel had the students write a function which calculated pi.