I need to perform few tests where I use randn pseudo random number generator. How can I set the seed on my own, so every time I run this test I will get the sam
randn
When you just want to reset the RNG to some known state, just use:
seed = 0; randn('state', seed); rand ('state', seed); A = round(10*(rand(1,5))); // always will be [10 2 6 5 9]