added my previously written pthread program with prng