<div dir="ltr">Speaking of Lua and randoms, I had read somewhere (I think on the website) that on some platforms, their random generators will always produce the same FIRST number, but everything else after that is &quot;random&quot;. I tested this out on the Mac OS X, and yes, every FIRST number is the same, but everything else beyond that isn&#39;t. The &quot;workaround&quot; for this is to just drop the first random value you get. I don&#39;t know why this happens, but is it possible that the same things happens in PD? I have not tested this out.<br>
<br>Mike<br><br><br><div class="gmail_quote">On Thu, Sep 4, 2008 at 2:56 PM, Frank Barknecht <span dir="ltr">&lt;<a href="mailto:fbar@footils.org">fbar@footils.org</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;">
Hallo,<br>
<div class="Ih2E3d">IOhannes m zm?lnig hat gesagt: // IOhannes m zm?lnig wrote:<br>
<br>
&gt; Martin Peach wrote:<br>
&gt;<br>
&gt; &gt; Or have a single random generator inside pd that feeds all the random<br>
&gt; &gt; objects.<br>
&gt;<br>
&gt; yes of course, this would be the most straight forward solution.<br>
<br>
</div>Only to this one problem, but it would lead to many others: Being able<br>
to seed [random] objects separately is a very important feature. For<br>
example a lot of the algorithmic composition in the game &quot;Spore&quot; is<br>
relying on seeding random generators separately with known seeds<br>
(according to the talk once posted here).<br>
<br>
In Lua there is only one seed for all math.random() calls, and it&#39;s even<br>
globally affecting all pd_lua objects. That&#39;s very annoying, but thank<br>
god, there&#39;s a random.so &quot;external&quot; Lua module which fixes this.<br>
<br>
Ciao<br>
--<br>
<font color="#888888">Frank Barknecht<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician<br>

</div>