I just wanted to know, trying to get a ralts for my team in W2 so I was wondering the above?
Yes, the gender of the Pokemon the Yancy or Curtis trades to you is random.
Sources: This and this.