Who selects the mediator?

The lawyers usually select the mediators. Frequently the judge, if a lawsuit has already be filed, will make "suggestions" identifying a person the judge believes would be appropriate for the case.