Hi,<br><br>You could use the [shell] object to run a little bash script that would ask the current time in milliseconds from your system, and send it as a seed to Pd using pdsend. This way you wouldn&#39;t need any extra command line arguments. I don&#39;t know whether this is worth the trouble, though.<br>
<br>Pierre.<br><br><div class="gmail_quote">2012/11/14 Roman Haefeli <span dir="ltr">&lt;<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, 2012-11-14 at 14:53 +0000, Enrique Erne wrote:<br>
&gt; Hi List!<br>
&gt;<br>
&gt; Can a random number form 0 to 100 be generated with the following requirements:<br>
&gt;<br>
&gt;   - No externals / Vanilla Pd only<br>
&gt;   - DSP must be off<br>
&gt;   - The patch is loaded with Pd through command line interface i.e.<br>
&gt; `pd -noprefs -nogui givemerandom.pd`<br>
&gt;   - The output should not always be the same number<br>
&gt;<br>
<br>
</div>If you happen to start Pd always from bash / command-line, you do<br>
something like this:<br>
<br>
pd -noprefs -nogui givemerandom.pd -send &quot;seed $RANDOM&quot;<br>
<br>
and in your patch:<br>
<br>
[r seed]<br>
|<br>
[seed $1(<br>
|<br>
[random]<br>
<br>
However, I also would be interested in a solution that works without<br>
command-line arguments.<br>
<span class="HOEnZb"><font color="#888888"><br>
Roman<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br>