Deleted pid_rand function
time functions corrected