I have a bleeding when pass faeces but not always?

See a physician. Bleeding like you described may be the result of an anal fissure or internal hemorrhoids, both of which are treatable. However, depending on your age and other symptoms, it could the something more serious such as inflammatory bowel disease for colorectal cancer or polyps. You should see your physician for further evaluation.