Hi, You can use interface Random to generate a 16-bit or 32-bit random value. It's very easy to use.
On Thu, Mar 29, 2012 at 6:26 AM, rakshita guddi <[email protected]>wrote: > hai, > > Am trying to modify RadioSenseToLeds, such that the payload has data from > 3 different sensors attached to it. The program works fine. But since i > used DemoSensor, everyvalue i receive is the same. How to generate random > value for simulation purpose? > > pls help me. > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
