I'm building some simulations with matlab and I use rand function. I would obtain at every run, the same results. I read somewhere I have to set the seed of rand function. I tried using
s = RandStream('mcg16807', 'seed', 0)RandStream.setGlobalStream(s);
but it didn't work.Maybe I made some mistake.
Best Answer