Open
Description
I think it would be useful if we have a guideline about how to write a unittest for a function that involves randomness.
There are two approaches:
- Use
np.random.seed
(Example:test_quad.py
, to match the outcomes to those from the CompEcon toolbox?) - Rely on the law of large numbers
(Example:test_discrete_rv
)
Is there any "principle"?