title: random rotation in sprite kit
body: <p>hi guys I have this code for a character on my screen now I want to rotate it in y direction like a person looking at its left or right based on random time interval. 
  but my code is not working does anyone has any clues where am I making a mistake? by the way please don't look for any random time as I am very newbie and don't know an SKAction which does the rotation based on zRotation.</p>
  
  <pre><code>   - (void) RandomRotator {
            _Enemy.zRotation += 180;
            _Enemy.zRotation -= 180;
            SKAction *wait = [SKAction waitForDuration:2.5];
            [_Enemy runAction:[SKAction sequence:@[wait]]];
      }
  </code></pre>
  
  <p>now what exactly I mean by that is like the picture Above:
  <img src="https://i.stack.imgur.com/nnsiC.png" alt="enter image description here"></p>