simple question on randf()

Hello
I am trying to use randf() //random numb 0…1
but the compiler is giving an error from MATH.LIB=

line 1 : ERROR DEMO1-LED.C : Duplicate pow10 found in file C:\DCRABBIT_10.64\LIB\RABBIT4000\MATH\MATH.LIB (previous one ignored). Any idea what the problem is? Thanks

Here is the simple code:


#class auto

#use “BL4S1xx.LIB”
#use “MATH.LIB”

main() {

int i, f, r;
long int j; // 32 bits else 16

brdInit();     // this must be called BEFORE any I/O

i = 0;
f = 0;
r = 0;

setDigOut(0, 1); // Set output to be general digital output

while (1) {
++i;
f = i % 2; // mod math for 0 or 1 result
r = randf()+ 1; // rand 0 or 1 value

  for (j=0; j<256000; ++j);

 digOut(0, r);   // set LED on or off based on r value

  printf("f = %d

", f);
}
}