tictoc: question about destination (two lines)

61 views
Skip to first unread message

Carlo

unread,
Apr 6, 2012, 6:05:41 AM4/6/12
to omn...@googlegroups.com
Hi everybody,
i can't undestrand these two lines in the code.

int dest = intuniform(0,n-2);
if (dest>=src) dest++;

FIRST LINE
If n is the size of the node's vectors (we have 6 nodes), why do i extract dest from 0 to 4 ? how is it possible to extract the node 5 in this way?

SECOND LINE
Why this condition???
Message has been deleted

Mohd Adib Sarijari

unread,
Apr 23, 2012, 10:08:35 AM4/23/12
to omn...@googlegroups.com
i had posted a comment here, however, it seams that it does not appear. does anybody know why?

Mohd Adib Sarijari

unread,
Apr 23, 2012, 10:11:13 AM4/23/12
to omn...@googlegroups.com
i think it is being deleted. hope you did received it carlo, if not, i will do type it again.

i am sorry for the inconvenience.

Adib
Reply all
Reply to author
Forward
0 new messages