I set the state of RAND before calling GAMRND. However the output is not reproduced. Below is a function that illustrates the issue:
function testgammastate = 0rand('state', state);n1 = gamrnd(1,1)
Calling "testgamma.m" repeatedly does not result in the same set of random numbers generated.
Best Answer