Generally, the more permanent your living situation, the more likely you are to be separated out.
I've slept in mixed-gender transient tents while waiting for flights out of Kuwait and Iraq (military layovers can take several days!) I've slept in mixed gender situations out in the field, as...