Randomizing processor numbers has no effect
The taskvec variable seems to be used to store the new order of processes, however, it is never read. Instead, the communication partner (and indirectly the order) is computed with pepartner.
- is --randomize still needed (I don't know why it would be useful)
- if so, iterate through taskvec instead of 1..size for the main loop