randomize first task to request work from
use rand_r instead of srand