I realize that I have violent flashes
What happens during these violent flashes?
I try to attack the people around me.
It's good to hurt people or use violence against them because someone could get hurt. If you're having trouble controlling yourself during violent flashes then you should probably try to get some professional help.
I usually lock myself in my room.
You don't have to shut yourself out from the world like that, you deserve to have the life like everyone else. I really believe it's great to see help about this, because violence is not very healthy and they can try to steer you away from that.