<div dir="ltr">Hi<div><br></div><div>I do nbot understand why you should keep the same seed (it should give rise to 10000 times the same results), but teh way to do that is:</div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">S=grand("getsd")</span></div><div><span style="font-size:12.8000001907349px">for i=1:100</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">  for j=1:100</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">     for k=1:100</span></div><div><span style="font-size:12.8000001907349px">        grand("setsd",S")</span></div><div><span style="font-size:12.8000001907349px">        x=grand(10,10,'norm',0,1)</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">        ・・・・・</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">     end</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">  end</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">end</span><br></div><div><br></div><div>Éric.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-29 19:12 GMT+02:00 fujimoto2005 <span dir="ltr"><<a href="mailto:fujimoto2005@gmail.com" target="_blank">fujimoto2005@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to  set the same seed for same k for every i,j.<br>
<br>
for i=1:100<br>
  for j=1:100<br>
     for k=1:100<br>
        x=grand(10,10,'norm',0,1)<br>
        ・・・・・<br>
     end<br>
  end<br>
end<br>
Pleas teach me how to set such seed.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://mailinglists.scilab.org/setting-the-seed-of-grand-tp4032520.html" rel="noreferrer" target="_blank">http://mailinglists.scilab.org/setting-the-seed-of-grand-tp4032520.html</a><br>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div><br></div>