<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Use  [randomF] from the markex library.</span></div><div><br><span></span></div><div><span>-Jonathan<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Scott R. Looney &lt;scottrlooney@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Renato &lt;rennabh@gmail.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> Pd-list@iem.at <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, January 20, 2012 2:17 PM<br>
 <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] random float<br> </font> </div> <br>
<div id="yiv2029967837">i'm new to PD as well but have worked in Max - &nbsp;if by float you mean a decimal between 0.0 and 1.0 just use the [*] (multiply object<div>) after [random] and multiply by a decimal number (like .01). set the random to pick between 0 and 100 and you should be all set for 100 data points. as long as you have a clue of the number of data points between A and B you can set the range with the multiplier. you can also use the [drunk] object in PD-extended (cyclone) for a custom range but the decimal multiplier is still needed to convert that to float.</div>
<div><br></div><div>any other faster methods, PD'ers? i'm nowhere near the worlds greatest programmer, but that's what first comes to mind.<br><div><br></div><div>scott<br><br><div class="yiv2029967837gmail_quote">On Fri, Jan 20, 2012 at 10:56 AM, Renato <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:rennabh@gmail.com" target="_blank" href="mailto:rennabh@gmail.com">rennabh@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="yiv2029967837gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello, I'm very very new to pd, and couldn't find an answer to this<br>
supposedly simple matter. I see that the "random" object generates<br>
random integers between 0 and its argument.<br>
<br>
How do I generate a random float between floats a and b?<br>
<br>
cheers,<br>
renato<br>
<br>
_______________________________________________<br>
<a rel="nofollow" ymailto="mailto:Pd-list@iem.at" target="_blank" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br>
</blockquote></div><br></div></div>
</div><br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at" 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><br><br> </div> </div> </blockquote></div>   </div></body></html>