<br><br><div><span class="gmail_quote">On 21/11/2007, <b class="gmail_sendername">Scott Wheeler</b> &lt;<a href="mailto:wheeler@kde.org">wheeler@kde.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I found the pattern -- I was using &quot;--silent&quot; on Windows.&nbsp;&nbsp;Windows seems<br>to use the number of milliseconds since the program started running in<br>its computation of rand().&nbsp;&nbsp;If you remove the 1::second =&gt; now from the
<br>loop the numbers are in fact random.&nbsp;&nbsp;Effectively using --silent did<br>that to my runs (since durations aren&#39;t respected then).&nbsp;&nbsp;All of the<br>different durations that I tried in your loop seem to produce a<br>different, repeated sequence.
</blockquote><div><br><br>Ah! Good work!<br><br>Assuming the&nbsp; random number generator itself is solid enough for our purposes (sounds safe to me as a assumption, it&#39;s not that hard) this could still be fixed by coming up with a per session initial seed for the series,&nbsp; then basing every new one the last permutation right?
<br></div><br><br>Interestingly this;<br>----------------------------------<br>Noise n =&gt; blackhole;<br><br>//avoid generating a zero (perhaps done to avoid clicks, perhaps it&#39;s the first of the series?)<br>ms =&gt; now;
<br><br>&lt;&lt;&lt;n.last()&gt;&gt;&gt;;<br>----------------------------<br><br>.....Will always start with the same number (0.851436) the first time it&#39;s run but running it multiple times while keeping the VM alive won&#39;t repeat like rand2 will. Sadly that means Noise won&#39;t get us a free seed to start with, which is what I was of course hoping for.
<br><br>Kas.<br></div>