If you have exactly the same software installed on both motes and the motes dont rely on any "third factor" which hand out a seed for the "random" number generator you will always get the same order of the "random" numbers on both motes. The reason I highlight the word random is because random number generators on computers are seldom random. They are often built on some number generators that produce pseudo-random numbers which in turn rely on a seed to produce different sequences of numbers.
My first question would be if you must use the same TOS_NODE_ID? Using different ones with RandomC would give different seeds for the generator and in the end different numbers. /Henrik 2010/9/13 Markus Niedermann <[email protected]> > At first, i want to say hello. > This is my first mail at this mailinglist. > I'm from Karlsruhe, Germany, Student of Computer science. > > My situation: > i have 2 micaz motes with the same software installed. (Same > TOS_NODE_ID, too) > Now, i want to have 2 different random numbers at the two motes. > > My idea was it, to use RandomC, but I always get the same random number, > because all relevant factors at the 2 motes seems to be the same. > > Is there another Random implementation with a better algorithm that uses > unique factors? are there any unique factors? > It wouldn't matter, if the same random number appears at the same mote, > but at the other mote, i need another random number. > > Thanks for your help. > Markus > _______________________________________________ > 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
