Period masterbating?

Okay so I've been having a real bad period this time just alot of blood and everything but like. I'm really horny and I just want to masterbate but idk hoe to when I'm on my rag. Can anyone help? Is it even something I can do?