What you are having is an irregular period, which is normal for teenagers and women in their twenties. With time, your periods will become more regular. If you are still concerned, you should talk to a doctor for medical advice.
It happens. Especially at your age. If your periods have been inconsistent then that means that your body is still regulating its cycle. Keep track of them. If it gets to be too concerning call your doctor.