result divided by world_size
remove srand to global scope