i think you can use %x to scale the values from 0 to x. Regards, Vijayant.
On Dec 10, 2007 11:59 PM, Paul <[EMAIL PROTECTED]> wrote: > Hi all > > I need to, during startup decides out of NUM_NODES nodes, which of the > NUM_TASKERS nodes will perform certain tasks. > > Previously, I have identified these NUM_TASKERS inside the Makefile using > -DTASK_NODE=1, -DTASK_NODE=6, .... > > However, I want the task nodes to be different for each run. > > But, using Random () on each node might not work correctly here since the > seeds for each node is different? > > What is the proper way to do this? > > Thanks. > > Regards, > Paul > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help