Logic Completed
works fine using normal Random number generator. But pthreads takes more time than sequential execution