Add randomized rows in multithreading