Hi All,
I tried this code

    value = call Random.rand16();
    if( (value & 1) == 1 ) {
      call BitVector.set(0);
      call Leds.led0On();
    }


several times but, apparently, random always returns the same value. I wired
RandomC.Init to main. Do I need to do anything else?

Thanks

-- 
Roberto
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to