$baton = int (rand ($no_of_threads)) until $baton != $id; #### $baton = int (rand ($no_of_sprinters)) until $baton != 0; #### $baton = int (rand ($no_of_sprinters)) + 1;
## $baton = int (rand ($no_of_sprinters)) until $baton != 0; ##
## $baton = int (rand ($no_of_sprinters)) + 1;