cramps and bloody discharge

My period has been irregular, it came at random times, and I started using this app in July, had my period on the 23rd, I didn't have one in August, and in September it came the 14th. And this month I've been having a lot of discharge (sometimes a brownish color, sometimes clear, and other times white) and today I've been having a lot of cramps and my discharge was clear but had blood in in, but as far as I know, I'm not on my period, and this hasn't happened before while I've been in my period.