/* * $Header: /H2 Mission Pack/HCode/math.hc 2 2/12/98 3:32p Jmonroe $ */ /* * crandom() -- Returns a random number between -1 and 1. */ float crandom() { return random(-1,1); } /* float fexp(float base,float exponent) {//MG float exp_count; exponent=rint(exponent); if(exponent==0) return 1; if(exponent<0) { base=1/base; exponent=fabs(exponent); } if(exponent==1) return base; exponent-=1; while(exp_count