It is semi random, but highly influenced by your pet's general well being. I suggest maxing out their stats before attempting a date for a higher success chance :)
I see. I understand now! Thank you.