<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div><span style="background-color: rgba(255, 255, 255, 0);">Hello,</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">I find it useful to wrap random in an abstraction, so that I use $2 as an instance id, to both receive a "seed" and to add the abstraction id to the seed.</span></div></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">But, it would be really useful to have a unique instance id already generated in the [random] object, and a global symbol to bind all [random]s to send a seed and increment it by each unique id. </span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">what do you think? is this possible?</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">I tested briefly and thie wrapping method really gives different random streams provided there is a different seed when opening the patch</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">cheers,</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">fede</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div>On May 31, 2018, at 10:00 PM, Martin Peach <<a href="mailto:chakekatzil@gmail.com">chakekatzil@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">On Thu, May 31, 2018 at 3:09 PM, hans w. koch <span dir="ltr"><<a href="mailto:hansw.koch@gmail.com" target="_blank">hansw.koch@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">but couldnĀ“t that pi limitation worked around by a loadbang -delay combo to read a date, once the system has established one?<br>
would need mention in the helpfile though.<br>
<br></blockquote><div>The pi might not be connected to any network, in which case it will always start at Jan 1, 2000.</div><div>/dev/random may not be usable right at startup as it needs time to accumulate entropy, .dev/urandom is guaranteed to give some sort of random. Reading a few bytes from /dev/urandom into a table then combining them into a float or long int seems like a better idea.</div><div>There's an equivalent method in the WIndows API (SystemPrng), but it would have to be coded into an external since it's not a file like in linux.</div><div><br></div><div>Martin</div><br></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span><a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list</span><br><span>UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a></span><br></div></blockquote></body></html>