My cat Frederick is like that. I think it's kitty bi-polar disorder.. You can be petting him and he'll be purring, then he'll just flip around and latch on to you and bite/kick. He's super awesome, though. My friends kid can come up and yank on his tail and he just walks away. He also has the "attack everything!" Siamese trait.