Hi,<div><br></div><div>I've got a chuck file called <a href="http://rand.ck">rand.ck</a> that defines functions, and another that machine.add's <a href="http://rand.ck">rand.ck</a>, but can't find the functions</div>
<div><br></div><div><a href="http://rand.ck">rand.ck</a></div><div>"</div><div><div>fun float rand_norm() { // Marsaglia polar method, wastes the second ind var</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>float s, x, y;</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>0 => s;</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>while (s == 0 || s >= 1) {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Std.randf() => x;</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>Std.randf() => y;</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>x*x + y*y => s;</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>}</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>return x * Math.sqrt(-2 * Math.log(s) / s);</div><div>}</div></div><div>"</div><div><br></div><div><a href="http://test.ck">test.ck</a></div><div>"Machine.add("/Users/George/Documents/chucko/util/<a href="http://rand.ck">rand.ck</a>");</div>
<div>for (0 => int i; i<10; i++) {</div><div>    rand_norm() => float x;</div><div>    <<< x >>>;</div><div>}</div><div>"</div><div>I add <a href="http://test.ck">test.ck</a> to the miniAudicle VM and the following error</div>
<div>error: line(3): undefined variable 'rand_norm'...</div><div><br></div><div>Am noob. plz help. kthx.</div><div><br></div><div> - George</div>