Trying to convince struggle. Metformin&provera

I have been trying to get pregnant for 3 years. My period are irregular which makes it very difficult to know when I ovulate. The doctor but me on Metformin and Provera to get pregnant I need advise have anyone been successful?