Le lundi 14 mars 2016 à 04:19 -0700, RAJ Rohit Jalem a écrit :
> How do I test functions that return random values.
> 
> For example, this function here: https://coveralls.io/builds/5402764/
> source?filename=src%2Fsampling.jl#L77
> 
> Can it be done with the Base.Test package?  If yes, then how?
Use srand() before calling them to ensure you always get the same
"random" value. For example, srand(1) will work.


Regards

Reply via email to