Hallo, Mike McGonagle hat gesagt: // Mike McGonagle wrote: > 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 "random". I tested this out > on the Mac OS X, and yes, every FIRST number is the same, but everything > else beyond that isn't.
On Linux I get the same values not only for the first, but for all random values, unless I seed with os.time, and then the first value is different everytime, too. But as globally seeded randoms are unusable for many composition algorithms, I prefer the random module from here: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/index.html which lets you create the equivalent of Pd's independent [random] objects in Lua. Ciao -- Frank Barknecht _ ______footils.org__ _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
