Months without a period and no chance of pregnancy

Have had my period for 3 years and could go months on end without receiving one. Like one every two three months or 4 something like that.  When they do come though there are terrible cramps and really bad clotty discharge. Any reasoning for the irregularness?