stop randomly peeing

ik it may sound weird, but sometimes when im walking i pee and it's annoying.  i wanna know if theres anything to do about it? i dont think its serios bc I probably just need to go to the bathroom but when i cant i dont wanna be peeing.