ash1221 I made this example capx
I made the same speed for all of them, but you can make an instance variable holding the speed, and made it generate randomly.
This is what I did:
1. set a boolean instance variable to know if the sprite is rotating or need a new updated direction and nr of rotations.
2. set and substract/add from instance variable the amount of degree to be rotating. (1800 means rotate 5 times to the left, 1800 rotate 5 times to the right ).
3. if instance variable representing the amount of degree has pass the zero than request a new rotation