Execution time measurement implementation
Correcting implementation to use random numbers in each thread