I had random spontaneous bleeding. What could it be from?

Need more. This question is pretty vague. More information would be pretty important here as "excessive vaginal bleeding" can be anything from an unusually-heavy period to heaving bleeding while pregnant (a true emergency). Please give us more so we can help you better. At a minimum, we need to know if you are pregnant or not and if this is just heavy menstrual bleeding or something else.