Change find_worker_by_random() from O(n^2) to O(n)