Commit d71b9bd2 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

MS-SBVAR: remove reinitialization of random number generator

parent 7e29a03f
......@@ -130,15 +130,15 @@ tdf = 3; % degrees of freedom for t-dist for initial draw of the MC loo
nbuffer = 1000; % a block or buffer of draws (buffer) that is saved to the disk (not memory)
ndraws1=1*nbuffer; % 1st part of Monte Carlo draws
ndraws2=10*ndraws1; % 2nd part of Monte Carlo draws
seednumber = options_.DynareRandomStreams.seed; %7910; %472534; % if 0, random state at each clock time
% good one 420 for [29 45], [29 54]
if seednumber
randn('state',seednumber);
rand('state',seednumber);
else
randn('state',fix(100*sum(clock)));
rand('state',fix(100*sum(clock)));
end
% seednumber = options_.DynareRandomStreams.seed; %7910; %472534; % if 0, random state at each clock time
% % good one 420 for [29 45], [29 54]
% if seednumber
% randn('state',seednumber);
% rand('state',seednumber);
% else
% randn('state',fix(100*sum(clock)));
% rand('state',fix(100*sum(clock)));
% end
% nstarts=1 % number of starting points
% imndraws = nstarts*ndraws2; % total draws for impulse responses or forecasts
%<<<<<<<<<<<<<<<<<<<
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment