Unfortunately not for the moment but very soon !<br><br>Simon<br><br><div class="gmail_quote">On Tue, Apr 21, 2009 at 2:38 AM, Fernando Rannou <span dir="ltr">&lt;<a href="mailto:rannou@diinf.usach.cl">rannou@diinf.usach.cl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Are there any commands in Gate to control this<br>
generator? I couldn&#39;t find any in the User&#39;s guide<br>
<br>
Fernando<br>
<br>
Simon Stute wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi MJ,<br>
<br>
In Gate_v4 the random generator has changed. Now this is the Mersenne Twister, that is more stable, longer period and faster than the old one (JamesRandom).<br>
Unfortunately people who changed this stuff forgot to update the gjs program. So the gjs program still products JamesRandom seed files, and those files are ignored by the Mersenne Twister generator ... That is why you always get the default seed value (fixed in CLHEP) and the same results for all splited macros.<br>

<br>
To fix it:<br>
<br>
In the main program, Gate.cc file, there are few lines at the beginning of the main concerning the random generator:<br>
<br>
//<br>
// random engine<br>
//<br>
<br>
  //CLHEP::HepJamesRandom randomEngine;<br>
  //CLHEP::Ranlux64Engine randomEngine;<br>
    CLHEP::MTwistEngine randomEngine;<br>
    CLHEP::HepRandom::setTheEngine(&amp;randomEngine);<br>
<br>
So just comment the line concerning the Mersenne Twister and uncomment the line concerning the JamesRandom engine, and recompile:<br>
<br>
//<br>
// random engine<br>
//<br>
<br>
  CLHEP::HepJamesRandom randomEngine;<br>
  //CLHEP::Ranlux64Engine randomEngine;<br>
  //CLHEP::MTwistEngine randomEngine;<br>
    CLHEP::HepRandom::setTheEngine(&amp;randomEngine);<br>
<br>
So you will use the old generator but it will work with the gjs random seed files...<br>
<br>
And don&#39;t worry, this is fixed for the next version and new macro commands to control everything concerning the random generators will be provided (type of generator, automatic randomized seed, fixed seed, use of seed files, etc...). Coming soon.<br>

<br>
Cheers,<br>
Simon<br>
<br>
<br>
<br></div><div class="im">
On Thu, Apr 9, 2009 at 8:01 AM, Park MinJae &lt;<a href="mailto:MJ@toti.us" target="_blank">MJ@toti.us</a> &lt;mailto:<a href="mailto:MJ@toti.us" target="_blank">MJ@toti.us</a>&gt;&gt; wrote:<br>
<br>
<br>
    Dear Gaters,<br>
<br>
    Long time, no see~ :)<br>
<br>
<br>
    I recently changed 3.12 to 4.00 on x64...<br>
<br>
    Everything of Gate works fine...but the split jobs generated SAME<br>
    results...<br>
<br>
    I checked the seed-files...Initial Seed were same...9876...<br>
<br>
    I took a look into the source files of Gate and tried to put one more<br>
    randomization step at the initial seeds...I couldn&#39;t...<br>
<br>
    Thank you for any information about it...:)<br>
<br>
    Cordially yours,<br>
    MJ<br>
<br>
    //=================================================<br>
    //  Park MinJae<br>
    //  SNU BME Ph.D. Candidate<br>
    //<br>
    //  DialTo:+82-17-711-7809<br></div>
    //  MailTo:<a href="mailto:MJ@ToTi.us" target="_blank">MJ@ToTi.us</a> &lt;mailto:<a href="mailto:MJ@ToTi.us" target="_blank">MJ@ToTi.us</a>&gt;<div class="im"><br>
    //<br>
    //  Make the Dream True...<br>
    //=================================================<br>
<br>
<br>
    _______________________________________________<br>
    Gate-users mailing list<br>
    <a href="mailto:Gate-users@lists.healthgrid.org" target="_blank">Gate-users@lists.healthgrid.org</a><br></div>
    &lt;mailto:<a href="mailto:Gate-users@lists.healthgrid.org" target="_blank">Gate-users@lists.healthgrid.org</a>&gt;<div class="im"><br>
    <a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br>
<br>
<br></div>
-- <br>
Este mensaje ha sido analizado por *MailScanner* &lt;<a href="http://www.mailscanner.info/" target="_blank">http://www.mailscanner.info/</a>&gt;<br>
en busca de virus y otros contenidos peligrosos,<br>
y se considera que estį limpio.<br>
MailScanner agradece a transtec Computers &lt;<a href="http://www.transtec.co.uk/" target="_blank">http://www.transtec.co.uk/</a>&gt; por su apoyo.<br>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org" target="_blank">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
  <br>
</div></blockquote><font color="#888888">
<br>
-- <br>
Este mensaje ha sido analizado por MailScanner<br>
en busca de virus y otros contenidos peligrosos,<br>
y se considera que estį limpio.<br>
MailScanner agradece a transtec Computers por su apoyo.</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org" target="_blank">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
</div></div></blockquote></div><br>