<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><p>Hi Kassen & Hans,  </p><p> That's very sad! A seed is perfect to get a 
repeating pattern, but sometimes it's nice to turn off the seed to get 
non repeatable values.  </p><p> So the only way is to delete the seed and restart the sketch?  </p><p> thanks!  </p></div><div><br></div><div><br></div><br><div><div>Am 10.09.2010 um 01:53 schrieb Kassen:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">Hi Lars!</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap:break-word">if we use a random seed, f.e. <span style="font-family:Arial;font-size:12px">Std.srand(120); </span><div> <font face="Arial"><br></font></div><div><font face="Arial">will this affect all the random function inside the sketch?</font></div></div></blockquote><div><br></div><div>Yes, it will. And this does mean that periodically resetting the seed (say at audio-rate) will turn the UGens that use noise into a sort of wavetable players; it will affect all random functions and noise-generators.</div> <div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><font face="Arial"> and if so, how can we turn it off?</font></div> <div><font class="Apple-style-span" face="Arial"><br></font></div></div></blockquote><div><br></div><div>Well, you can't. The whole point of ,srand() is affecting the various random functions to create repeatable pieces.</div> <div><br></div><div>A alternative would be simply not setting it, though I do seem to remember some issues with the initial seed under Windows not being particularly random. In that case you could set the seed using a amplified signal from the adc. A source like hiss from your mixer should be as random a signal as you are likely to encounter in day to day life and mak things utterly unpredictable.</div> <div><br></div><div>Hope that helps,</div><div>Kas.</div></div> _______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br></blockquote></div><br><div><br></div><div>On 9 Sep 2010, at 20:49, Lars Ullrich wrote:<br><br><blockquote type="cite">if we use a random seed, f.e. Std.srand(120);<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">will this affect all the random function inside the sketch? and if so, how can we turn it off?<br></blockquote><br>You do not have to seed - looking into the source code, if the seed is not given, time will be used as seed.</div></body></html>