Usually, pilots will have some form of preference system that will allow them to 'bid' for what flights they want to do, whether they would like to spend time away on trips, and what days they would like their days off to fall on. As you can imagine, most pilots will bid for weekends off.