MATLAB: Using normrnd function in a loop

normrndrandum number

If I use normrnd function in a loop, every times that normrnd runs in a new loop it will give me the same number? ( if I set parameters to a constant value);
for i = 1 :10
x(i) = normrnd(1,0.2);
end

Best Answer

No. It will give a different number on every call (until you reach the end of the pseudorandom generator's period, which is enormous).
Related Question