[Scilab-users] setting the seed of grand

Eric Dubois grocer.toolbox at gmail.com
Mon Jun 29 20:06:06 CEST 2015


Hi

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:

S=grand("getsd")
for i=1:100
  for j=1:100
     for k=1:100
        grand("setsd",S")
        x=grand(10,10,'norm',0,1)
        ・・・・・
     end
  end
end

Éric.

2015-06-29 19:12 GMT+02:00 fujimoto2005 <fujimoto2005 at gmail.com>:

> I want to  set the same seed for same k for every i,j.
>
> for i=1:100
>   for j=1:100
>      for k=1:100
>         x=grand(10,10,'norm',0,1)
>         ・・・・・
>      end
>   end
> end
> Pleas teach me how to set such seed.
>
>
>
>
>
> --
> View this message in context:
> http://mailinglists.scilab.org/setting-the-seed-of-grand-tp4032520.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive
> at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150629/1ad69848/attachment.htm>


More information about the users mailing list