tiny purple dots on skin?

I have this tiny purple dots that are showing up on my skin with random bruises I don't even remember getting? I'm going to my doctor soon because I think I have slight anorexia or a form of it and I think it roots from the medication that I am on but if I do have some type of eating disorder could that be the cause of this?