resume using srand