<human>: My ex and I broke up in January of this year and it has been rough since. We tried the no contact which was extremely hard and she started avoiding seeing me. Finally last night she said it was because she was pregnant.

She says after I broke up with her she was hurt and went to a party and got drunk and had sex with a guy. It wasn't an ongoing relationship it was just sex. 

I broke up with her to begin with because I was trying to figure out my feelings and I hadn't been 100% in to our relationship. We had gone through 2 pregnancies which resulted in miscarriages. The first was not planned but we decided we would keep it and it brought us closer together. We found out we lost it and were extremely hurt and made the poor choice to try again. This resulted in another miscarriage which happened the same week I broke up with her. 

Since I had broken up I still had extreme feelings for her. I know it usually takes along time to go away and I'm sure with what we've been through it makes it harder to move on. Now that she has told me she is pregnant she is okay with seeing me and I'm extremely happy but I'm also confused with my emotions as well.

It pisses me off that this random guys baby is going to make it when ours did not. I'm pissed that she went out and fucked a few weeks after breaking up with her. I know that's kind of an illogical anger because it was my choice and we weren't together anymore. It hurts because I had a vision in my mind that we would work things out and be able to start over but this changes things completely. 

It may sound stupid but I still want a relationship with her. I don't know if that's good or not. I wish someone had been in my position before.

Could you distill the essence of the text into 1-3 sentences?
<bot>: Ex and I had a miscarriage while we were together. Broke up a few months ago and she is now pregnant and farther along with a random guys baby. I don't know what I should do.