Feeling horny in class? Please help me

Alexa
So the past few days, at what feels like random. I will just be sitting in my science class and start to feel super horny. Even almost wet. Obviously I can't go to the bathroom and masturbate so I have to wait until I get home. Is there anything I can do to get rid of this and are there any other girls who this happens to?