You need to see a doctor !
it all depends on whether you've been doing it anal, putting stuff up there you shouldn't be putting. if blood is just coming out of your anus out the blue you should see a doctor - something could be wrong with your insides.