called srand at the beging of the program