I have to write class based unittests for a function which returns random values. I have ideas on how to do that. For example see the testing methods described in this answer of this stackoverflow question.
I want to know how can we implement this for my function using Matlab's class based (matlab.unittest.TestCase) unit test methods.
Lets call my function which returns the random value as "myRandRetFunc" and it looks like following. How can I implement unit testing for it for things described here or for some other ideas you have in mind.
function rndRetVal = myRandRetFunc(inp1, inp2, inp3)
arg1 = aComplexFunc(inp1, inp2)
arg2 = anotherComplexFunc(inp2, inp3)
rndRetVal = rand(arg1, arg2)