[PD] Random - Different seed each time the patch is loaded
fbar at footils.org
Thu Sep 4 21:56:35 CEST 2008
IOhannes m zm?lnig hat gesagt: // IOhannes m zm?lnig wrote:
> Martin Peach wrote:
> > Or have a single random generator inside pd that feeds all the random
> > objects.
> yes of course, this would be the most straight forward solution.
Only to this one problem, but it would lead to many others: Being able
to seed [random] objects separately is a very important feature. For
example a lot of the algorithmic composition in the game "Spore" is
relying on seeding random generators separately with known seeds
(according to the talk once posted here).
In Lua there is only one seed for all math.random() calls, and it's even
globally affecting all pd_lua objects. That's very annoying, but thank
god, there's a random.so "external" Lua module which fixes this.
More information about the Pd-list