[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] random seeds



wrap it in a Routine and set a seed?

I don't think there is any difference between putting it in a Routine
and just setting thisThread.randSeed. Setting the seed for any running
Routine seems to affect all other running Routines.

(
a = Routine({inf.do{postf("A - %\n", 10.rand); 0.5.wait }}).play;
b = Routine({inf.do{postf("B - %\n", 10.rand); 0.5.wait }}).play
)

a.randSeed_(1000) /// <-- will make the sequence for a AND b restart

I'd like to know if there was a way of doing it though.

Yours sincerely,
Scott Smith