Funny would be:<br><br>maybe (0.5) {<br> // Do stuff<br>} else {<br> // Do other stuff<br>}<br><br>Tambet<br>
<br><br><div class="gmail_quote">2010/9/4 Rich Caloggero <span dir="ltr"><<a href="mailto:rjc@mit.edu">rjc@mit.edu</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">WOw, what a very cool idea. I vote for it!</font></div>
<div><font size="2"></font> </div><font color="#888888">
<div><font size="2">-- Rich</font></div>
<div><font size="2"></font> </div>
</font><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px;"><div class="im">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<b>From:</b>
<a title="signal.automatique@gmail.com" href="mailto:signal.automatique@gmail.com" target="_blank">Kassen</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="chuck-users@lists.cs.princeton.edu" href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">ChucK Users Mailing List</a>
</div>
</div><div><div></div><div class="h5"><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Sent:</b> Friday, September 03, 2010 3:44
PM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [chuck-users] new ideas, new
bugs...</div>
<div><br></div>Fellow ChucKists,
<div><br></div>
<div>I was poking around in the source for "maybe" to try to figure out how
hard Joe's idea would be to implement.</div>
<div><br></div>
<div>So far it looked really quite easy to me, except that the chuck operator
would have to be overloaded to deal with chucking floats to "likely" and
"unlikely". This made me wonder what kind of error this would give;</div>
<div><br></div>
<div>1 => maybe;</div>
<div><br></div>
<div>It turns out that doesn't give a error at all and instead seg-faults
(latest miniAudicle, linux ALSA, canonical version except for the CNoise
fix).</div>
<div><br></div>
<div>So; regardless of whether or not we go with Joe's idea this area does
need a look.</div>
<div>I vote that we do take this idea as it would be very little work for
something that would be that much fun. With a default of .75% for likely and
25% for unlikely it would have all of the advantages of the various proposed
strategies and on top of that we'd get a easy "crossfade" for chance-based
techniques that may span several shreds.</div>
<div><br></div>
<div>Yours,</div>
<div>Kas.</div>
</div></div><p>
</p><hr><div class="im">
<p></p>_______________________________________________<br>chuck-users mailing
list<br><a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></blockquote></div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br>