+ /* Take random i and j, with i != j */
+ xbt_assert(host_count > 1);
+ i = rand() % host_count;
+ j = rand() % (host_count - 1);
+ if (j >= i) // '>=' is not a bug: j is uniform on host_count-1 values, and shifted on need to maintain uniform random
+ j++;