In very general terms, bloody stool means that there's some sort of injury
or disorder located somewhere in your digestive tract.
As a rule, the closer the source of bleeding is to the anus, the brighter red the blood will be. This is because the bacteria in your digestive system works to break down the blood as it passes through. So the longer blood stays in your digestive tract, the darker it will become. The color of the bloody stool can range from bright red through maroon and black.
If the bloody stool is bright red, then there's a good chance the blood was essentially added on the way out by hemorrhoids or anal fissures.
Since you are not complaining of any pain while defecating,it means it is not anal fissure and most likely it should be due to hemorrhoids.
can not cause bright red blood in the stool as it can cause only dark stool because bleeding due to ibuprofen would come from stomach and tnis blood will turn dark by the time stool passes out.
Consult a surgeon and get the diagnosis made.