add srand to main