What about getting the k-loop outside?
for k=1:100
x=grand(10,10,'nor',0,1)
for i=1:100
for j=1:100
・・・・・
end
end
end
Not possible?
Rafael
From: users [mailto:[email protected]] On Behalf Of Eric Dubois
Sent: Monday, June 29, 2015 7:06 PM
To: International users mailing list for Scilab.
Subject: Re: [Scilab-users] setting the seed of grand
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 <[email protected]
<mailto:[email protected]> >:
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
[email protected] <mailto:[email protected]>
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users