I agree with Bill, notify your doctor immediately. I've had that and I ignored it for too long. By the time I told a doctor, I had stage 3 cancer. You're pretty young for colon cancer, unless you have a family history, but any rectal bleeding is potentially serious and should be seen as soon as possible.
If you have blood in your stool, you need to notify your doctor.