example2: set srand