What causes random pus filled bumps on thighs?

Could be. Something called folliculitis, which is inflammation and infection of the hair follicles. The best thing to do is to show your doctor when you get one so that you know how to prevent this in the future.