Check out the Random interface here: http://www.tinyos.net/tinyos-2.x/doc/nesdoc/telosb/index.html I use tos.system.RandomMlcgC It works fairly well for my purposes. Eric
On Sun, Mar 30, 2008 at 8:05 AM, Eli Gotesman <[EMAIL PROTECTED]> wrote: > Hi, > > I want to write a simple application that each node that gets a message, > generates a random ID and sends the message to the corresponding node, > How do I generate a random integer. > > I'm working with tinyOS 2 on Tmote-Sky > > Thank you in advance, > Eli > > _______________________________________________ > 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
