The tribe of Ephraim gave some of the Kohath families some towns. Those towns were chosen by throwing lots.