Thanks for query,
Is is frank blood ?If yes then it is due to fissure.
If it is mixed with stool & brown or black then it might come from intestine then the possibility of irritable bowel syndrome
or some new growth arise.
You consult your doctor for proper diagnosis.
He will examine you & advice accordingly.